Skip to content

feat(api): add brand archive endpoint Adds POST /brands/{id}/archive and wires it as brands.archive. Archiving is permanent and moves the brand's products, live subscriptions, and product collections to the brand given by move_products_to, which must belong to the same business and must not itself be archived; the primary brand is a valid target. move_products_to may be omitted only when the brand holds no products and no live subscriptions. The response reports archived_at plus the counts of products, subscriptions, and collections moved. The primary brand cannot be archived (403) and re-archiving conflicts (409). Spec 1.112.13 -> 1.113.0. - #275

Merged
aagarwal1012 merged 1 commit into
mainfrom
stlc-generated-32052737901
Aug 17, 2026

Conversation

@dodo-squirrels

Copy link
Copy Markdown
Contributor

Automated stlc build from config repo commit 98bca3841e6e338c20e293450e1ba8d13065d0f6.

Adds POST /brands/{id}/archive and wires it as brands.archive. Archiving is
permanent and moves the brand's products, live subscriptions, and product
collections to the brand given by move_products_to, which must belong to the
same business and must not itself be archived; the primary brand is a valid
target. move_products_to may be omitted only when the brand holds no products
and no live subscriptions. The response reports archived_at plus the counts of
products, subscriptions, and collections moved. The primary brand cannot be
archived (403) and re-archiving conflicts (409).
Spec 1.112.13 -> 1.113.0.

Stainless-Generated-From: 8cfc61d
@aagarwal1012
aagarwal1012 merged commit 2fac458 into main Aug 17, 2026
5 of 7 checks passed
@aagarwal1012
aagarwal1012 deleted the stlc-generated-32052737901 branch August 17, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant