POST
/
v0
/
products
/
{productId}
/
variants
/
add
curl --request POST \
  --url https://api.fungies.io/v0/products/{productId}/variants/add \
  --header 'Content-Type: application/json' \
  --header 'x-fngs-public-key: <api-key>' \
  --header 'x-fngs-secret-key: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "",
  "features": [
    {
      "value": "<string>"
    }
  ],
  "cover": "<string>",
  "coverBlurHash": "<string>",
  "coverVideo": "<string>",
  "externalId": "<string>"
}'
{
  "status": "<string>",
  "data": {
    "variant": {
      "object": "variant",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "internalId": null,
      "name": "",
      "description": "",
      "order": null
    }
  }
}

Authorizations

x-fngs-public-key
string
header
required
x-fngs-secret-key
string
header
required

Path Parameters

productId
string
required

POST /v0/products/:productId/variants/add Parameter

Body

application/json
POST /v0/products/:productId/variants/add Request body
name
string
required
Required string length: 1 - 150
description
string
default:
features
object[]
cover
string
coverBlurHash
string
coverVideo
string
externalId
string

Response

200
application/json
POST /v0/products/:productId/variants/add Positive response
status
string
required
Allowed value: "success"
data
object
required