API reference · Templates
Update a template's passes
POST/v1/templates/{slug}/update-passes1 operation a passSafe to retry with Idempotency-KeyGives every pass on an older version the template's latest design, in the background. Installed passes refresh.
Path
slugstringrequiredThe template's slug. org:<slug> for one your organization shares with this workspace (those can only be read).
Answer
202Started
Follow it with Get a template: update.status goes from sending to completed, or stopped if it couldn't go on. failed passes kept their old design.
Errors
Every error has the same shape: see Errors.
| Status | Code | When |
|---|---|---|
| 403 | organization_template | It's your organization's: change it in the dashboard, or duplicate it to make your own. |
| 404 | not_found | No template with that slug here. |
| 409 | template_update_in_progress | Its passes are already being updated. |
| 409 | idempotency_conflict | The Idempotency-Key was already used for a different request. |
| 422 | nothing_to_update | Every pass made from it is on its latest version. |
| 429 | template_update_over_allowance | It would go past this month's operations. preview says what's left. |