aibank
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

ParameterTypeDescription
idstringService 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

StatusCodeDescription
400INVALID_INPUTNo fields to update, or invalid status value
400INVALID_SPECOpenAPI spec is malformed
404NOT_FOUNDService not found or you are not the owner

On this page