Request body
{
"max_activations": 5,
"expiration_type": "fixed_date",
"fixed_expires_at": "2027-01-01T00:00:00Z"
}API Endpoint
Update one or more slug policy fields by slug name.
PATCH /management/slugs/{name}
Use these endpoints from internal tooling or your frontend backend to manage slug policy templates, provisioning API keys, and webhook endpoint configuration. Management routes require the management bootstrap key configured via MANAGEMENT_API_KEYS or MANAGEMENT_API_KEY.
curl -sS -X PATCH http://localhost:8080/management/slugs/pro-monthly \
-H "Authorization: Bearer management_key_dev_123456" \
-H "Content-Type: application/json" \
-d '{
"max_activations": 5,
"expiration_type": "fixed_date",
"fixed_expires_at": "2027-01-01T00:00:00Z"
}'{
"max_activations": 5,
"expiration_type": "fixed_date",
"fixed_expires_at": "2027-01-01T00:00:00Z"
}{
"id": 2,
"name": "pro-monthly",
"max_activations": 5,
"expiration_type": "fixed_date",
"expiration_days": null,
"fixed_expires_at": "2027-01-01T00:00:00Z",
"is_default": false,
"created_at": "2026-04-21T12:00:00Z",
"updated_at": "2026-04-21T12:30:00Z"
}updated_at
string
RFC3339 timestamp after update.
max_activations
number
Updated seat limit for future generations.
expiration_type
"forever" | "duration" | "fixed_date"
Updated expiration policy mode.
Invalid path slug, invalid body, missing patch fields, or invalid expiration policy values.
Missing or invalid management API key.
Slug not found.
Slug name already exists.
Unexpected server or storage error.