stable · api · 0.1.0
Register a scheduled operation endpoint
POST /api/v1/scheduled-operations
Capability Domain: Jobs Scheduling
Authentication
projectCredential (schedules:write)
Scope: schedules:write
Parameters and request body
-
Idempotency-Key— header, requiredIdempotency-Key schema { "type": "string", "maxLength": 120 } -
X-Correlation-ID— header, optionalX-Correlation-ID schema { "type": "string", "format": "uuid" }
Request schema
application/json
{
"type": "object",
"additionalProperties": false,
"required": [
"name",
"url",
"secret"
],
"properties": {
"name": {
"type": "string",
"maxLength": 120,
"pattern": "^[a-z][a-z0-9_.-]+$"
},
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"secret": {
"type": "string",
"minLength": 32,
"maxLength": 255
},
"max_attempts": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 5
}
}
}
application/json request example
{
"name": "reports.refresh",
"url": "https://backend.example.com/invocations",
"secret": "replace-with-at-least-32-random-characters",
"max_attempts": 5
}
Responses and errors
| Status | Description |
|---|---|
200 | Registered operation |
401 | Invalid or revoked Project Credential |
403 | Project Credential lacks the required scope |
422 | Request violates the public contract |
200 schema
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
}
}
}
}
}
401 schema
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message",
"retryable",
"correlation_id",
"details"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"correlation_id": {
"type": "string",
"format": "uuid"
},
"details": {
"type": "object"
}
}
}
}
}
403 schema
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message",
"retryable",
"correlation_id",
"details"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"correlation_id": {
"type": "string",
"format": "uuid"
},
"details": {
"type": "object"
}
}
}
}
}
422 schema
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message",
"retryable",
"correlation_id",
"details"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"correlation_id": {
"type": "string",
"format": "uuid"
},
"details": {
"type": "object"
}
}
}
}
}
200 example
{
"data": {
"id": "86000000-0000-4000-8000-000000000001"
}
}
Idempotency
Requires Idempotency-Key. Reuse the key only with the same endpoint, secret, and retry policy.