Claim a pending building block run
POST/api/meshobjects/meshbuildingblockruns/claim
Claims the next meshBuildingBlockRun that waits for the given runner. meshStack sets the run to IN_PROGRESS,
creates its run token and answers with a meshBuildingBlockClaimedRun, which holds what the runner needs to execute
the run. This answer is the only way to get it. When no run waits, the answer is 204. The answer is 409 when
another claim took the same run at the same time; claim again.
Requires the admin right ADM_BUILDINGBLOCKRUN_SAVE, or the right MANAGED_BUILDINGBLOCKRUN_SAVE in the
workspace that owns the runner. A run token cannot claim a run.
Request
Responses
- 200
- 204
- 400
- 401
- 403
- 406
- 409
The claimed run, which is now in progress
No run waits for the runner, no response body is returned
The request is invalid. The message names the invalid part.
The request has no valid authentication.
The authenticated user or API key lacks the permission for this request.
The Accept header names no media type of this operation, or a version that is no longer supported.
The request conflicts with the current state, for example with an existing object of the same name. The message names the conflict.