Products

Update a variant

Update an existing variant's details.

Authorization

Public key Secret key
x-fngs-public-key<token>

In: header

x-fngs-secret-key<token>

In: header

Path Parameters

productId*string

PATCH /v0/products/:productId/variants/:variantId/update Parameter

Formatuuid
variantId*string

PATCH /v0/products/:productId/variants/:variantId/update Parameter

Formatuuid

Request Body

application/json

PATCH /v0/products/:productId/variants/:variantId/update Request body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

PATCH
/v0/products/{productId}/variants/{variantId}/update
curl -X PATCH "https://example.com/v0/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/variants/497f6eca-6276-4993-bfeb-53cbbbba6f08/update" \  -H "Content-Type: application/json" \  -d '{}'
{  "status": "success",  "data": {    "variant": {      "object": "variant",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "internalId": null,      "name": "",      "description": "",      "order": null    }  }}