curl --request POST \
--url 'https://api.computer.stateset.app/api/v1/templates/bulk-delete' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"names": [
"Two-Person Tent"
]
}'
{
"deleted": 1,
"skipped": 1,
"rows": [
{
"name": "Two-Person Tent",
"deleted": false,
"error": "string"
}
]
}
Bulk Delete Templates V1
Delete up to 50 templates by name in one call. Built-in names are skipped per-row (cannot be deleted, ever)…
POST
/
api
/
v1
/
templates
/
bulk-delete
curl --request POST \
--url 'https://api.computer.stateset.app/api/v1/templates/bulk-delete' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"names": [
"Two-Person Tent"
]
}'
{
"deleted": 1,
"skipped": 1,
"rows": [
{
"name": "Two-Person Tent",
"deleted": false,
"error": "string"
}
]
}
Delete up to 50 templates by name in one call.
Built-in names are skipped per-row (cannot be deleted, ever);
unknown / cross-tenant names also surface as per-row failures
rather than failing the batch. Single transaction commit.
Request body
BulkDeleteTemplatesRequest
string[]
required
Template names to delete (1..50). Built-in names are skipped per-row, not rejected.
Response
BulkDeleteTemplatesResponse
integer
required
integer
required
BulkDeleteTemplateRow[]
required
Status codes
| Code | Meaning |
|---|---|
200 | Successful Response |
422 | Validation Error |
curl --request POST \
--url 'https://api.computer.stateset.app/api/v1/templates/bulk-delete' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"names": [
"Two-Person Tent"
]
}'
{
"deleted": 1,
"skipped": 1,
"rows": [
{
"name": "Two-Person Tent",
"deleted": false,
"error": "string"
}
]
}
Last modified on August 31, 2026