Modify existing API keys. You can update the name, activation status, or associated permissions, which is useful for adjusting access for external applications or services.
keyId string required Example keyId parameter
Accept Example Content-Type Example name string required scopes array required is_active boolean required allowed_dns_zones array required dns_permissions array required description string success boolean timestamp string requestId string data object https://cloud.hostup.se/api/keys/{keyId} curl -X PUT "https://cloud.hostup.se/api/keys/key_EXAMPLE0001" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"scopes": [
"string"
],
"is_active": true,
"allowed_dns_zones": [
"string"
],
"dns_permissions": [
"string"
],
"description": "string"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"message": "string"
}
} {
"name": "string",
"scopes": [
"string"
],
"is_active": true,
"allowed_dns_zones": [
"string"
],
"dns_permissions": [
"string"
],
"description": "string"
}