Update API Key
Updates can take up to 5 minutes to become effective.
Setting mtlsEnabled to true requires mTLS for the API Key <a class="experimental-tag-link" href="https://docs.silverflow.com/guides/api-lifecycle#tag/EXPERIMENTAL-Tag"><span class="tag experimental-tag">EXPERIMENTAL</span></a>. This is not reversible. The secret of the API Key is replaced by one that is never shown, so the old secret stops working and the API Key can only be used with a client certificate. Bind at least one active certificate first, or the request fails with 422. An API Key can't enable mTLS for itself: use another API Key. Send mtlsEnabled on its own: a request that also contains other fields is refused with 400.
Requires apiKeys:Update permission.
Request
- Base URLhttps://eu-west-1.api.silverflow.com/v1
- Auth
- HTTP basic
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Uniquely identifies an API Key
Uniquely identifies an API Key.
Headers
The request condition
Request body
Example request
{
"status": "active",
"permissions": [
"reports:All"
],
"ipRanges": [
"185.184.111.90/32",
"185.184.111.96/29"
]
}Response
The updated API Key
Example response
{
"key": "apk-1nM6msvaara1OMHzU7Zd",
"status": "active",
"agentKey": "cgt-6y5t4r3edcgfrthb",
"description": "API Key for the data lake",
"permissions": [
"reports:All"
],
"ipRanges": [
"185.184.111.39/32"
],
"created": "2021-05-27T10:57:52Z",
"lastModified": "2021-05-27T10:57:52Z",
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.