Products

Update a product

Update an existing product's details. Can modify name, description, media, and other properties. Send only the fields you want to change: a field you leave out keeps its current value. To remove a cover, cover video, trailer or redeem message, send an empty string; to remove the gallery, send an empty array. A new cover sent without `coverBlurHash` drops the previous cover's blur hash. `type` is optional and the type cannot be changed: a `type` that differs from the product's answers 409. `requirements`, `developer`, `publisher`, `pegiRating` and `releaseDate` are accepted only on Game products; on any other type they answer 400. Note: The product slug cannot be changed after creation to prevent broken URLs.

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.

Formatuuid

Request Body

application/json

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

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

PATCH
/v0/products/{productId}/update
curl -X PATCH "https://example.com/v0/products/550e8400-e29b-41d4-a716-446655440000/update" \  -H "Content-Type: application/json" \  -d '{    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  }'
{  "status": "success",  "data": {    "product": {      "object": "product",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "type": "DigitalDownload",      "internalId": null,      "name": "",      "description": "",      "developer": null,      "publisher": null,      "pegiRating": "3",      "releaseDate": null,      "systems": null,      "genres": null,      "status": "DRAFT",      "customFields": null    }  }}