Skip to main content
PUT
/
status-pages
/
{id}
/
services
curl -X PUT "https://kodostatus.com/api/v1/status-pages/sp_abc123/services" \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "service_ids": [
      "svc_abc123",
      "svc_def456",
      "svc_ghi789"
    ]
  }'
{
  "success": true
}

Path Parameters

id
string
required
The status page ID

Body Parameters

service_ids
string[]
required
Array of service IDs to assign. The order of IDs determines display order on the page. This replaces all existing assignments.
This is a replace operation. Pass the complete list of services you want on the page. Any previously assigned services not in the array will be removed.
A single status page can have a maximum of 200 services assigned. The service_ids array must not contain duplicate entries.

Response

Returns a success confirmation.

Common Errors

StatusMessageDescription
400Cannot assign more than 200 services to a single status pageService limit exceeded
404Status page not foundThe ID does not match a page in your organization
curl -X PUT "https://kodostatus.com/api/v1/status-pages/sp_abc123/services" \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "service_ids": [
      "svc_abc123",
      "svc_def456",
      "svc_ghi789"
    ]
  }'
{
  "success": true
}