Update an API Key by ID

Update an API Key by ID

Request
Security:
path Parameters
userId
required
integer

User ID of the user to update keys for

id
required
integer

The ID of the API key to update

query Parameters
o
required
integer

The Organization of the key.

Request Body schema: application/json

Enable/Disable API key

is_enabled
required
boolean
Responses
200

Successful Operation

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

429

Too many requests

put/users/{userId}/api_keys/{id}
Request samples
application/json
{
  • "is_enabled": true
}
Response samples
application/json
{
  • "id": 0,
  • "name": "string",
  • "is_enabled": true,
  • "expires_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "user": {
    • "id": 0,
    • "firstname": "string",
    • "lastname": "string",
    • "email": "string"
    }
}