Update an API key for your services

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.

Path Parameters

keyId string required Example

keyId parameter

Headers

Accept Example
Content-Type Example

Body

required
application/json
name string required
scopes array required
is_active boolean required
allowed_dns_zones array required
dns_permissions array required
description string

Responses

200
success boolean
timestamp string
requestId string
data object
PUT https://cloud.hostup.se/api/keys/{keyId}
For AI assistants
cURL
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"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "message": "string"
  }
}
Request Body
{
  "name": "string",
  "scopes": [
    "string"
  ],
  "is_active": true,
  "allowed_dns_zones": [
    "string"
  ],
  "dns_permissions": [
    "string"
  ],
  "description": "string"
}