API referenceStructure Templates

Delete structure template

Permanently deletes the structure template. Cards already populated from it are not affected.

DELETE
/v1/brands/{brandId}/structure-templates/{templateId}
bearerAuth
headerAuthorizationBearer <token>

An organization API key (koast_sk_…) with the API surface enabled, or an OAuth access token issued by Koast (koast_at_…) whose audience covers this API. REST access requires an active Agency plan.

brandId*integer

The brand the request acts on. Every brand-scoped resource lives under its brand.

templateId*string

The structure template id, from listStructureTemplates.

Length1 <= length

Response Body

Delete structure template

application/json
  1. response
deleted*string

The template id that was deleted.

[key: string]?unknown
curl -X DELETE "https://example.com/v1/brands/0/structure-templates/string" \  -H "Authorization: Bearer koast_sk_..."
{  "deleted": "string",  "property1": null,  "property2": null}

Required scope: write. CLI: koast delete-structure-template, see Structure Templates commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.