POST /api/v1/lifecycles/{entity_name}/{guid}/stepTo
Step To
Auth: Authorization: Bearer <token> required
Request
Section titled “Request”curl -sS -X POST "https://entherium.duckdns.org:8443/api/v1/lifecycles/<entity_name>/<guid>/stepTo" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{"comment":"reviewed; moving to publish-ready","detail":{"reviewer":"agent"},"to_step":3}'Response 200
Section titled “Response 200”The contract carries no example for this response; schema: AdvanceResponse. Field-level shape: interactive explorer.
Returns
Section titled “Returns”AdvanceResponse — Successful Response
| Field | Type | Description |
|---|---|---|
detail | object | null (opt.) | |
entity | string | |
from_step | integer | null | |
guid | integer | |
outlet | string | |
to_step | integer |
Parameters
Section titled “Parameters”| Parameter | In | Required | Type | Default | Constraints | Description |
|---|---|---|---|---|---|---|
entity_name | path | yes | string | — | — | |
guid | path | yes | integer | — | — | |
Idempotency-Key | header | no | string | — | uuid | Optional. |
Request body
Section titled “Request body”| Field | Type | Required | Description |
|---|---|---|---|
comment | string | null | no | |
detail | object | null | no | |
to_step | integer | yes | target step id from LC definition |
Example:
{ "comment": "reviewed; moving to publish-ready", "detail": { "reviewer": "agent" }, "to_step": 3}Errors
Section titled “Errors”| Code | Meaning | Body |
|---|---|---|
401 | Missing or invalid authentication credentials | ErrorResponse |
404 | Entity or lifecycle not found | ErrorResponse |
409 | Transition not allowed from the current step | ErrorResponse |
422 | Validation Error | HTTPValidationError |
Every error body is {detail, code?, request_id, doc_url} — request_id is the value to quote, doc_url points at the Errors reference.