Skip to main content
POST
Add or remove SKUs across B2B product templates

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Body

application/json
action
enum<string>
required

Whether to add or remove the SKUs (case-insensitive)

Available options:
add,
remove
template_ids
integer[]

Template IDs to change (distinct, must exist). Required unless all_templates is true.

Maximum array length: 1000
exclude_template_ids
integer[]

Template IDs to leave untouched. Always wins over template_ids and all_templates.

all_templates
boolean
default:false

Apply to every template (minus exclude_template_ids)

sku_ids
integer[]

Product IDs (distinct, must exist and not be deleted). At least one of sku_ids or skus is required.

Maximum array length: 1000
skus
string[]

Internal SKU strings (distinct, must exist and not be deleted). At least one of sku_ids or skus is required.

Maximum array length: 1000

Response

One result per template that was considered

data
object