POST
https://api.whop.com/api
/
v2
/
products
/
{id}
curl --request POST \
  --url https://api.whop.com/api/v2/products/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "page": 1,
  "per": 10,
  "name": "<string>",
  "title": "<string>",
  "one_per_user": true,
  "visibility": "visible",
  "shuffleable": true
}'
{
  "data": {
    "id": "<string>",
    "title": "<string>",
    "name": "<string>",
    "visibility": "visible",
    "created_at": 123,
    "experiences": [
      [
        "<any>"
      ]
    ],
    "plans": [
      [
        "<any>"
      ]
    ]
  }
}

Headers

Authorization
string

Your API key, which can be found on the Whop Business Dashboard. You must prepend your key with the word 'Bearer', which will look like Bearer ***************************

Path Parameters

id
string
required

The ID of the Product, which will look like prod_************* or pass_*************

Query Parameters

expand
enum<string>[]

Whether or not to expand the Experiences and Plans on the returned Product(s). Pass an array with each object(s) you want to expand, e.g. [experiences, plans]

Body

application/json

Update a Product

Response

201
application/json

Update a Product

The response is of type object.