Skip to main content
POST
Create or update up to 200 product relations

Authorizations

Authorization
string
header
required

Use a project API key from Settings > API Access. Send it as Authorization: Bearer wpk_.... See authentication and scopes for setup and permissions.

Headers

Idempotency-Key
string

Reuse this key for retries of the same write. Scoped to this API key; retained for 30 days, after which the key may be reused. Different requests with the same key return 409.

Required string length: 1 - 128
Pattern: ^[!-~]+$

Body

application/json
items
ProductRelationCreate · object[]
required
Required array length: 1 - 200 elements
replace
boolean
default:false

When true, each (product, relation_type) pair named in the batch ends with exactly the relations listed for it: others of that type on that product are deleted.

Response

OK

results
ProductRelationBatchResult · object[]
required
summary
Summary · object
required