Skip to Content
APIEndpointsDelete writing style

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

HeaderTypeRequired
AuthorizationBearer asky_sk_…required
Idempotency-Keystringrequired on every write. See Idempotency

Path parameters

ParameterTypeRequiredDescription
brand_iduuidrequiredFrom List brands
style_iduuidrequiredFrom List writing styles

Request

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

{ "data": { "deleted_style_id": "8c082c21-a2eb-4c0f-bcd9-d58097a48e45", "new_default_id": "3c9fe109-0a5f-4c1e-9b2d-6a8e1f3c7b5d" }, "request_id": "req_5b0e77d213a94f6a8ce1" }

Response fields

FieldTypeDescription
data.deleted_style_iduuidrequired
data.new_default_iduuid | nullThe 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_idstringrequired. Also returned as the x-request-id header. Quote it when contacting support

Errors

StatusCodeWhen
401invalid_tokenThe key is missing, malformed, or does not exist
401token_expiredThe key passed its expiry date
401token_revokedThe key was revoked
404not_foundThe style does not exist for this brand, or this key is not allowed to reach the brand
409conflictThis is the brand’s only remaining content style
429rate_limitedOver 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