API ReferenceServices & Catalog
Update Service
Update a service's name, description, pricing, OpenAPI spec, or status.
Update Service
Update any fields of a service you own.
Authentication
Requires X-API-Key header. Only the service owner can update.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Service UUID |
Request body
All fields are optional. Only provided fields are updated.
Request
curl -X PUT http://localhost:4000/v1/services/SERVICE_ID \
-H "X-API-Key: ak_your_key" \
-H "Content-Type: application/json" \
-d '{
"price_per_call_usd": 0.01,
"status": "paused"
}'Response (200)
{
"updated": true,
"id": "service-uuid"
}Errors
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_INPUT | No fields to update, or invalid status value |
| 400 | INVALID_SPEC | OpenAPI spec is malformed |
| 404 | NOT_FOUND | Service not found or you are not the owner |