Create or update one product
const url = 'https://app.currentpim.se/api/v1/products/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"family":"example","variant_structure":"example","parent":"example","enabled":true,"is_bundle":true,"availability":{"additionalProperty":{"enabled":true,"from":"2026-04-15","until":"2026-04-15"}},"categories":["example"],"associations":{"additionalProperty":[{"target":"example","data":{"additionalProperty":"example"}}]},"values":{"additionalProperty":{"additionalProperty":{"additionalProperty":"example"}}},"version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://app.currentpim.se/api/v1/products/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "family": "example", "variant_structure": "example", "parent": "example", "enabled": true, "is_bundle": true, "availability": { "additionalProperty": { "enabled": true, "from": "2026-04-15", "until": "2026-04-15" } }, "categories": [ "example" ], "associations": { "additionalProperty": [ { "target": "example", "data": { "additionalProperty": "example" } } ] }, "values": { "additionalProperty": { "additionalProperty": { "additionalProperty": "example" } } }, "version": 1 }'Needs products:write and products.publish.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The product’s identifier (SKU). It may hold slashes.
Request Bodyrequired
Section titled “Request Bodyrequired”Keys left out stay as they are; values is a sparse delta (null clears a cell); categories and each association type sent replace what the product has.
object
Makes a new product a root model of this structure.
Makes a new product a variant of this model.
Makes a simple product a bundle; false takes its components away too. Set components with associations.bundle_components: {target, data: {quantity}}, a whole number from 1 to 9999.
object
object
object
Attribute code → channel code or _ → locale code or _ → value, in the stored shape (see docs/api.md, Product values). On writes a value of null clears the cell.
object
object
object
The product version the item was made against. When the product is no longer at it, the item fails alone with a version error instead of writing on top of the newer state.
Example generated
{ "family": "example", "variant_structure": "example", "parent": "example", "enabled": true, "is_bundle": true, "availability": { "additionalProperty": { "enabled": true, "from": "2026-04-15", "until": "2026-04-15" } }, "categories": [ "example" ], "associations": { "additionalProperty": [ { "target": "example", "data": { "additionalProperty": "example" } } ] }, "values": { "additionalProperty": { "additionalProperty": { "additionalProperty": "example" } } }, "version": 1}Responses
Section titled “Responses”Updated or unchanged.
object
A product as its version’s snapshot (what webhooks send as data.product), plus id, version numbers and timestamps. Cells outside the account’s scopes are left out.
object
Left out unless true. Its components are in associations.bundle_components, each with data.quantity.
Channel code => where and when the product is sold; left out when every channel sells it every day.
object
object
False: the channel doesn’t sell the product.
First day it is sold.
Last day it is sold.
A variant’s model, by identifier.
0 for products outside trees and root models.
Attribute code → channel code or _ → locale code or _ → value, in the stored shape (see docs/api.md, Product values). On writes a value of null clears the cell.
object
object
object
Association type code → links in order.
object
object
The linked product’s identifier.
The linked product’s id (reads only).
The type’s custom link fields.
object
Example
{ "status": "updated"}Created.
object
A product as its version’s snapshot (what webhooks send as data.product), plus id, version numbers and timestamps. Cells outside the account’s scopes are left out.
object
Left out unless true. Its components are in associations.bundle_components, each with data.quantity.
Channel code => where and when the product is sold; left out when every channel sells it every day.
object
object
False: the channel doesn’t sell the product.
First day it is sold.
Last day it is sold.
A variant’s model, by identifier.
0 for products outside trees and root models.
Attribute code → channel code or _ → locale code or _ → value, in the stored shape (see docs/api.md, Product values). On writes a value of null clears the cell.
object
object
object
Association type code → links in order.
object
object
The linked product’s identifier.
The linked product’s id (reads only).
The type’s custom link fields.
object
Example
{ "status": "created"}No valid token (missing, revoked, expired, or the account is deactivated).
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}The token lacks the ability or the account the permission.
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}The product could not be saved; errors names each field’s reasons.
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}More than the allowed requests a minute for this token; Retry-After says when to try again.
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}