Delete writing style
Remove a writing style. If it was its scope’s default, the next style by position is promoted automatically. Refuses to delete a brand’s last content style; a social channel’s styles may go to zero — content generation always needs a content default to fall back to, social replies do not.
DELETE /brands/{brand_id}/writing-styles/{style_id}Authorization
| Header | Type | Required |
|---|---|---|
Authorization | Bearer asky_sk_… | required |
Idempotency-Key | string | required on every write. See Idempotency |
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
brand_id | uuid | required | From List brands |
style_id | uuid | required | From List writing styles |
Request
cURL
curl --request DELETE \
--url 'https://api.askylabs.com/v1/brands/242546de-4cee-4a7d-952e-f6aa60c63ef8/writing-styles/8c082c21-a2eb-4c0f-bcd9-d58097a48e45' \
--header 'Authorization: Bearer <api-key>' \
--header 'Idempotency-Key: 5b0e77d2-13a9-4f6a-8ce1-9a3f5e21c0aa'Response
200
{
"data": {
"deleted_style_id": "8c082c21-a2eb-4c0f-bcd9-d58097a48e45",
"new_default_id": "3c9fe109-0a5f-4c1e-9b2d-6a8e1f3c7b5d"
},
"request_id": "req_5b0e77d213a94f6a8ce1"
}Response fields
| Field | Type | Description |
|---|---|---|
data.deleted_style_id | uuid | required |
data.new_default_id | uuid | null | The style promoted to default in its place, if the deleted style was the default and another style existed in scope. null if the deleted style was not the default, or if it was and no other style remained to promote (a social channel emptied out) |
request_id | string | required. Also returned as the x-request-id header. Quote it when contacting support |
Errors
| Status | Code | When |
|---|---|---|
| 401 | invalid_token | The key is missing, malformed, or does not exist |
| 401 | token_expired | The key passed its expiry date |
| 401 | token_revoked | The key was revoked |
| 404 | not_found | The style does not exist for this brand, or this key is not allowed to reach the brand |
| 409 | conflict | This is the brand’s only remaining content style |
| 429 | rate_limited | Over 60 requests per minute on write endpoints |
Notes
A social channel can be emptied completely. Identities on that channel with no explicit
writing_style_id simply lose their voice override; content generation has no equivalent
fallback-free path, which is why content refuses to go to zero.
Deleting a style’s documents. Any Brand Knowledge documents attached to this style (uploaded as style reference material) are deleted along with it, not returned to the general Brand Knowledge list.
Last updated on