Replace your API key

Replace an existing API key. This generates a new key and its ID, which are necessary for future API calls related to key management.

Path Parameters

keyId string required Example

keyId parameter

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/keys/{keyId}/roll
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/keys/key_EXAMPLE0003/roll" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "key_id": "string",
    "key": "string",
    "name": "string",
    "description": "string",
    "scopes": [
      "string"
    ],
    "dns_permissions": [
      "string"
    ],
    "created_at": "string",
    "message": "string"
  }
}