Validate a playbook definition
POST/api/v1/playbooks/validate
Answers what a create or update would be told about a definition, without writing: valid, and every graph problem it holds. A definition whose shape cannot be read is 400 VALIDATION_FAILED, as on a write.
With project_id, the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (EXECUTOR_NOT_FOUND) and name an action its mcp tool allows (EXECUTOR_ACTION_REQUIRED, EXECUTOR_ACTION_UNAVAILABLE) and not be a client tool (EXECUTOR_TOOL_UNSUPPORTED), and each transformation's tool must not be a client or mcp tool (TRANSFORMATION_TOOL_UNSUPPORTED). The caller needs both playbooks:ValidatePlaybook and playbooks:ListPlaybooks on the project. Without it, only the definition's own graph is checked.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 413
- 429
- 500
- 502
- 4XX
Validation result
Bad request — the definition's shape cannot be read, or playbook_id is given without project_id
Unauthorized
Forbidden
playbook_id names no playbook of the project
REQUEST_REJECTED — the request body is over the size the body parser accepts
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded
The deployment's admission service is asked about this write and did not answer — ADMISSION_UNAVAILABLE; the write did not happen
The deployment's admission service refused this write — answered under the service's own 4xx status, with its code (matching ^[A-Za-z_][A-Za-z0-9_]{0,63}$, not necessarily an ERROR_CODES key), message and meta; the write did not happen. A status this operation also declares on its own is documented there