Update an existing API key by ID
Request
- Base URL: https://cloud.manufact.com
- URL: https://cloud.manufact.com/api/auth/api-key/update
- Auth: HTTP bearer
Request body
The configuration ID to use for the API key lookup. If not provided, the default configuration will be used.
The id of the Api Key
The name of the key
Whether the Api Key is enabled or not
The number of remaining requests
The refill amount
The refill interval
Expiration time of the Api Key in seconds
Whether the key has rate limiting enabled.
Response
API key updated successfully
ID
The name of the key
Shows the first few characters of the API key, including the prefix. This allows you to show those few characters in the UI to make it easier for users to identify the API key.
The API Key prefix. Stored as plain text.
The owner of the user id
The interval in milliseconds between refills of the remaining count. Example: 3600000 // refill every hour (3600000ms = 1h)
The amount to refill
The last refill date
Sets if key is enabled or disabled
Whether the key has rate limiting enabled
The duration in milliseconds
Maximum amount of requests allowed within a window
The number of requests made within the rate limit time window
Remaining requests (every time api key is used this should updated and should be updated on refill as well)
When last request occurred
Expiry date of a key
created at
updated at
Extra metadata about the apiKey
Permissions for the api key (stored as JSON string)
Changes
No recorded changes to this operation across all 1 revision of this API.