Products
Archive a variant
Archive (soft delete) a variant by its ID. Associated offers are also affected. This action is reversible.
Authorization
Public key Secret key x-fngs-public-key<token>
In: header
x-fngs-secret-key<token>
In: header
Path Parameters
productId*string
Unique identifier (UUID) of the product.
Format
uuidvariantId*string
Unique identifier (UUID) of the product variant.
Format
uuidRequest Body
application/json
PATCH /v0/products/:productId/variants/:variantId/archive Request body
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/v0/products/550e8400-e29b-41d4-a716-446655440000/variants/550e8400-e29b-41d4-a716-446655440000/archive" \ -H "Content-Type: application/json" \ -d '{ "id": "string" }'{ "status": "success", "data": { "success": true }}