API reference · Templates
Rename a template
PATCH/v1/templates/{slug}FreeSafe to retry with Idempotency-KeyChanges its name or install page heading. Its design, version and passes stay as they are.
Path
slugstringrequiredThe template's slug. org:<slug> for one your organization shares with this workspace (those can only be read).
Body
namestring, up to 80 charactersIts new name.
installHeadlinestring or null, up to 120 charactersThe install page's heading for its passes. Null: ours.
Answer
200OK
Errors
Every error has the same shape: see Errors.
| Status | Code | When |
|---|---|---|
| 400 | validation_error | A field is wrong or unknown. |
| 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 | idempotency_conflict | The Idempotency-Key was already used for a different request. |