PUT/v2/projects/{projectId}/namespaces/{id}

Update a namespace

Updates the name of a namespace in a project. Provide the new name in the request body; it must contain at least one character.

2 parameters · 1 body field
idintegerrequired
The integer identifier of the namespace to update.
projectIdintegerrequired
The integer identifier of the project containing the namespace.

The namespace name to set.

namestringrequired
The namespace name. Must contain at least one character.

5 status codes
200Returns the updated namespace's integer `id` and `name`.
idintegerrequired
The id of namespace
namestringrequired
400Returned when `name` is missing or has fewer than 1 character, or when another request value is invalid.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
401Returned when the request is not authenticated.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
403Returned when the authenticated user does not have permission to update the namespace.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
404Returned when the namespace or project is not found.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional

Error handling

A 400 is returned for an invalid request; a 401 is returned when authentication is missing or invalid; a 403 is returned when the authenticated user lacks permission; and a 404 is returned when the namespace or project is not found. The id path parameter must identify the namespace, the projectId path parameter must identify its project, and name is required with a minimum length of 1 character.