POST
/v2/projects/{projectId}/start-batch-job/set-keys-namespaceSet a namespace for project keys
Starts an asynchronous batch job that assigns a namespace to selected keys in a project. Supply keyIds and optionally namespace to choose the keys and their namespace; the response contains the job record and its processing status.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
projectIdintegerrequired
The integer ID of the project whose keys to update.
Batch request to assign a namespace to selected project keys.
keyIdsarray<integer>required
The IDs of the keys to update. Must contain at least one integer.
namespacestringoptional
The namespace to assign to the selected keys. Must not exceed 100 characters.
200Returns the batch job record, including its ID, status, progress, total item count, job type, and timestamps.
activityRevisionIdintegeroptional
The activity revision id, that stores the activity details of the job
authorobjectoptional
createdAtintegerrequired
The time when the job created
errorMessagestringoptional
If the job failed, this is the error message
idintegerrequired
Batch job id
progressintegerrequired
Total items, that have been processed so far
statusstringrequired
Status of the batch job
totalItemsintegerrequired
Total items
typestringrequired
Type of the batch job
updatedAtintegerrequired
The time when the job was last updated (status change)
400Returned when the request is invalid or fails validation.
codestringrequired
paramsarray<object>optional
401Returned when the request has no valid authentication.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user does not have permission to update keys in the project.
codestringrequired
paramsarray<object>optional
404Returned when the project is not found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the request is invalid; a 401 when authentication is missing or invalid; a 403 when the authenticated user lacks permission; and a 404 when the project is not found. keyIds must contain at least one key ID, and namespace must be no more than 100 characters. The projectId path parameter must identify an existing project.