Writes the cache of a proposals-repo pull request's head (Fabric after it commits, the repo's CI on every push). The id is the UUIDv5 of repo_path; the caller needs the workflow_graph update ability on company_id. The same checks as a deploy apply to the artifacts. Answers 200 whether the row was created, updated or left as it was (applied and outcome tell which). A write for another head whose head_committed_at is not newer than the stored one is 409 with code stale_head.
Blocked proposals. A proposal whose graph needs a node type the executor does not have yet is written with status blocked and blocked_on (required with that status; checked, but not stored, with any other). The graph is stored with that type: unknown_node_type is not reported for the types in blocked_on (nor for any type when status is closed, which also excuses the graph shape findings unknown_port, cycle and unreachable_node, invalid_config and invalid_filter_id), and every other finding still applies. Refused with 422 when every type in blocked_on is already in the node catalog (code already_available; send the proposal as draft) and when a type that no node uses and the catalog lacks is named (code unused_type). When a services release whose catalog has every type in blocked_on starts, the orchestrator leader moves the proposal to draft and creates one in-app notification for requested_by (the company's workflow editors if that user no longer exists).
requested_by is the caller's user, taken from the token; the body has no such member (one that is sent is ignored). It is set when the row is created, whenever a write moves the proposal into blocked, and by any write while the stored value is empty (a row from before the column existed).
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400The request was malformed or contained invalid parameters.
401You are not authorized
403You are forbidden from accessing this resource
409The proposal holds a head that is not older than this one (code stale_head).
413The body is over the cap.
422An invalid artifact or status. errors lists {artifact, path, code, message}; for blocked_on the codes are already_available and unused_type. A bad doc set has artifact docs and the member's name as path (an unknown file, a value that is not a string, a file over 128 KiB). An invalid audit is a 422 with code invalid_audit, every error with artifact audit.
500An unexpected error was encountered.