Edit structure template rules
Updates the structure template. Pass only the fields to change; a new config is validated before it is saved.
bearerAuthAuthorizationBearer <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*integerThe brand the request acts on. Every brand-scoped resource lives under its brand.
templateId*stringStructure template ID. Omit to read the template currently open in the builder from the Current Context block. Pass an explicit id only when acting on a different template than the one in scope.
1 <= lengthapplication/json- body
name?string1 <= lengthconfig?audiences?array<>Template-level audiences (targetingSet | customAudience | savedAudience). At least one is required to save or apply.
settings?scope?string"single""multiple"status?string"DRAFT""READY""NEEDS_ATTENTION"accounts?array<>Edit structure template rules
application/json- response
[key: string]?unknowncurl -X PATCH "https://example.com/v1/brands/0/structure-templates/string" \ -H "Authorization: Bearer koast_sk_..." \ -H "Content-Type: application/json" \ -d '{}'{ "property1": null, "property2": null}Required scope: write. CLI: koast edit-structure-template-rules, see Structure Templates commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.
Delete structure template
Permanently deletes the structure template. Cards already populated from it are not affected.
Get brand style guide
Returns the brand's style guide, when it was confirmed, the website it was built from, its logo asset, CSS that loads its fonts, the website images stored by the brand's latest extraction, the images the brand's users liked, disliked or picked as references, and whether the brand runs ads on an agency ad account from Koast, whose ads are reviewed against stricter rules than Meta's.