Skip to main content

Update API Key

Update an existing API key. Users can only update their own API keys.
integer
required
API key ID

Request Body

object
required
API key object with fields to update
string
Descriptive name for the key
array
Array of allowed CORS origins
array
Array of assistant IDs the key can access

Response

object
Response status information
integer
HTTP status code (200)
string
Status message
object
Updated API key object

Error Responses

object
Unauthorized - Invalid or missing authentication
object
API key not found
object
Validation error - Invalid request body