Update an API key
Updates an API key. Enable or disable the key to temporarily remove access without deleting the key. This is useful for maintenance windows, or when your team no longer requires access to a specific corpus.
Users that hold none of the corpus_administrator, administrator, or owner roles can only update their own personal API key; a key that exists but belongs to another user returns a 404 error. Machine credentials — API keys, app clients, and service accounts — without one of those three roles cannot call this operation.
Path parameters
The ID of the API key.
Headers
The platform makes a best effort to complete the request in the specified seconds, or it times out.
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Response
The API key.
Changes
Changed in 2 of the 7 revisions of this API.116
- ▲
the
response's property type changed fromstringto no type for statusresponse-property-type-changed
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added to the
response propertyallOflist for the response statusresponse-property-all-of-added
- ○
removed the
personalenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ○
removed the
servingenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ○
removed the
serving_and_indexingenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ○
response property
api_key_rolereactivatedresponse-property-reactivated
- ▲
- ●
added the new
agent_end_userenum value to the//response property for the response statusresponse-property-enum-value-added
- ●