Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

Stock /CreateVariationGroup

Allows 150 calls per minute

Response: VariationGroup



Use this call to create a variation group

Parameters

NameTypeDescription
templateVariationGroupTemplateVariation parent inforamtion

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Stock/CreateVariationGroup

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

template={
  "VariationGroupName": "sample string 1",
  "ParentSKU": "sample string 2",
  "ParentStockItemId": "200964b9-44c5-4061-9a46-fa55a785a488",
  "VariationItemIds": [
    "adbf830d-397a-4999-979e-9f0534fb9cac"
  ]
}

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "VariationSKU": "sample string 1",
  "pkVariationItemId": "07cc9e1c-c1ae-4245-9d6f-aba61ac77bc0",
  "VariationGroupName": "sample string 3"
}