curl --silent --show-error --fail-with-body --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 --silent --show-error --fail-with-body --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"
}
]
}
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.
Request body
BulkDeleteTemplatesRequest
string[]
required
Template names to delete (1..50). Built-in names are skipped per-row, not rejected. Minimum items:
1. Maximum items: 50.Response
BulkDeleteTemplatesResponse
integer
required
integer
required
BulkDeleteTemplateRow[]
required
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 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 September 21, 2026