Skip to main content
POST
Update a distribution template

Authorizations

Authorization
string
header
required

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

Path Parameters

templateId
integer
required

Distribution template ID

Body

application/json
name
string
required

Template name. Must be unique among non-deleted templates; on update, sending the template's current name is allowed.

Maximum string length: 191
Example:

"Apparel sizes"

axis_count
enum<integer>
required

1 for a single-axis template, 2 for a dual-axis (row × column) template.

Available options:
1,
2
column_axis_name
string
required

Variant type on the column axis, e.g. Size.

Maximum string length: 191
Example:

"Size"

column_values
object[]
required

Column-axis values. Values must be distinct and their percents must total 100.

Required array length: 1 - 200 elements
description
string | null
Maximum string length: 2000
row_axis_name
string | null

Variant type on the row axis. Required when axis_count is 2, and must be a different variant type from column_axis_name. Rejected on a single-axis template.

Maximum string length: 191
row_values
object[]

Row-axis values, same shape and rules as column_values. Required when axis_count is 2; rejected on a single-axis template.

Maximum array length: 200
is_default
boolean
default:false

Make this the tenant default. Promoting a template clears the previous default.

is_active
boolean
default:true
sort_order
integer
default:0
Required range: x >= 0
category_id
integer | null

ID of an existing size-curve category (see GET /distribution-templates/categories).

warehouse_id
integer | null

Destination warehouse this template applies to. Only allowed together with category_id. At most one active template may exist per category and warehouse, including the category's unscoped (no warehouse) slot.

Response

Template updated

data
object

A distribution template (size curve) that splits a master SKU total across its variants.

Example: