Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

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": "6ebf4ec6-0adc-4f06-b4e6-8028915c22db",
  "VariationItemIds": [
    "e40a060d-8040-44e5-9692-15a8b7125f90"
  ]
}

Response

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

{
  "VariationSKU": "sample string 1",
  "pkVariationItemId": "30210c8b-77f0-49c7-8270-63469accc35c",
  "VariationGroupName": "sample string 3"
}