Update Project API Key

Activates or deactivates a project-scoped API key. A deactivated key is rejected on authentication.

Path parameters

projectIdstringRequired
The unique identifier of the project.
apiKeyIdintegerRequired
The unique identifier of the API key.

Headers

CONFIDENT_API_KEYstringRequired
The organization API key for your Confident AI organization.

Request

This endpoint expects an object.
validbooleanRequired

Set to false to deactivate the key, or true to reactivate it

Response

successboolean
Indicates if the request was successful
dataobject