curl --silent --show-error --fail-with-body --request PATCH \
--url 'https://api.computer.stateset.app/api/v1/templates/{name}' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"description": "Two-person tent, green — replacement for damaged pole set.",
"defaults": {}
}'
{
"name": "Two-Person Tent",
"kind": "builtin",
"description": "Two-person tent, green — replacement for damaged pole set."
}
Update Template V1
Update description and/or defaults on a tenant-owned template…
PATCH
/
api
/
v1
/
templates
/
{name}
curl --silent --show-error --fail-with-body --request PATCH \
--url 'https://api.computer.stateset.app/api/v1/templates/{name}' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"description": "Two-person tent, green — replacement for damaged pole set.",
"defaults": {}
}'
{
"name": "Two-Person Tent",
"kind": "builtin",
"description": "Two-person tent, green — replacement for damaged pole set."
}
Confirm your deployment before running this request. This page describes an API contract;
a published reference does not establish hosted availability. Check the dated
host report and obtain your deployment URL and credentials.
Replace the example host if your provisioned service uses a different URL.
name is immutable — to rename, delete and re-create
(which intentionally orphans referencing job rows from the old name).
Built-in templates cannot be modified.
Path parameters
string
required
Request body
UpdateTemplateRequest
string,null
New description; omit to leave unchanged. Minimum length:
1. Maximum length: 256.object,null
New defaults dict. Replaces the entire defaults blob — pass the merged result, not a partial. Omit to leave unchanged.
Response
TemplateInfo
string
required
The exact string to pass as
agent_type on /trigger.string
required
builtin ships with the platform; tenant is owned by your org. Allowed values: 'builtin', 'tenant'.string,null
Human-readable description (tenant templates only).
Status codes
| Code | Meaning |
|---|---|
200 | Successful Response |
422 | Validation Error |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request PATCH \
--url 'https://api.computer.stateset.app/api/v1/templates/{name}' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"description": "Two-person tent, green — replacement for damaged pole set.",
"defaults": {}
}'
{
"name": "Two-Person Tent",
"kind": "builtin",
"description": "Two-person tent, green — replacement for damaged pole set."
}
Last modified on September 21, 2026