Overview

Use this page to create Product Variations on Purpl via the API. Fill in the placeholders and run the requests with your favorite REST client.

<aside> 🪪

Before you start, make sure you have a valid BASE_URL and access TOKEN.

</aside>

<aside> 🔑

Need an access token? See: Create an OAuth Application and Obtain an Access Token

</aside>


Prerequisites


Step 1 — Create the top‑level Product

Create the product that will hold the variations.

POST <BASE_URL>/products/
Authorization: Bearer <TOKEN>
Content-Type: application/json

{
  "name": "<product_name>",
  "description": "Optional description"
}

Step 2 — Create a Variant (attribute)

Defines what varies between product versions (e.g., Size, Color, Duration).