Перейти к содержимому

POST /api/v1/lifecycles/{entity_name}/{guid}/stepTo

Статус: GA Доступ: по токену контракт API: 0.3.0 · capability 2026-09-03.1 Открыть как Markdown Открыть в Claude Открыть в ChatGPT

Step To

Авторизация: нужен Authorization: Bearer <token>

Окно терминала
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}'

В контракте нет примера для этого ответа; схема: AdvanceResponse. Поля — в интерактивном обозревателе.

AdvanceResponse — Successful Response

ПолеТипОписание
detailobject | null (opt.)
entitystring
from_stepinteger | null
guidinteger
outletstring
to_stepinteger
ПараметрГдеОбязателенТипПо умолчаниюОграниченияОписание
entity_namepathдаstring——
guidpathдаinteger——
Idempotency-Keyheaderнетstring—uuidOptional.
ПолеТипОбязательноОписание
commentstring | nullнет
detailobject | nullнет
to_stepintegerдаtarget step id from LC definition

Пример:

{
"comment": "reviewed; moving to publish-ready",
"detail": {
"reviewer": "agent"
},
"to_step": 3
}
КодСмыслТело
401Missing or invalid authentication credentialsErrorResponse
404Entity or lifecycle not foundErrorResponse
409Transition not allowed from the current stepErrorResponse
422Validation ErrorHTTPValidationError

Тело любой ошибки — {detail, code?, request_id, doc_url}: request_id — что цитировать, doc_url ведёт в Справочник ошибок.