Skip to main content

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​

The claimed run, which is now in progress