Skip to main content
PUT
/
stores
/
{storeId}
/
products
/
{productId}
/
variants
/
{variantId}
/
items
Add items to variant
curl --request PUT \
  --url https://api.komerza.com/stores/{storeId}/products/{productId}/variants/{variantId}/items \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    "<string>"
  ]
}
'
{
  "success": true,
  "message": "<string>",
  "code": "<string>",
  "data": "<unknown>"
}

Authorizations

Authorization
string
header
required

Your API key goes here

Path Parameters

storeId
string<uuid>
required

The store’s unique identifier.

productId
string<uuid>
required

The product’s unique identifier.

variantId
string<uuid>
required

The variant’s unique identifier.

Body

The Komerza.Common.Forms.Products.ProductItems containing item list.

Form used to update the items on a product

items
string[]
required

The array of items to add to the product, this will append the items to the end of the existing items

Response

The object was successfully created.

Represents a default generic response for API endpoints.

success
boolean
required

Indicates whether the operation or response was successful.

message
string | null

A descriptive message providing additional context or information about the response.

code
string | null

The error code (if there was an error) to use when referencing the error

data
any | null

The data object encapsulated within the response, representing the core output of the API operation