Update the specified API key
PUThttps://api.spectrocloud.com/v1/apiKeys/:uid
Update the specified API key
Request
Path Parameters
uid stringrequired
Specify API key uid
- application/json
Body
metadata
object
spec
Responses
- 204
The resource was updated successfully
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X PUT 'https://api.spectrocloud.com/v1/apiKeys/:uid' \
-H 'Content-Type: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
--data-raw '{
"metadata": {
"annotations": {},
"creationTimestamp": "2024-07-02T20:23:32.873Z",
"deletionTimestamp": "2024-07-02T20:23:32.873Z",
"labels": {},
"lastModifiedTimestamp": "2024-07-02T20:23:32.873Z",
"name": "string",
"uid": "string"
},
"spec": {
"expiry": "2024-07-02T20:23:32.873Z"
}
}'