Viewrium Docs
HTTP referenceProducts

Update the 3D model

PATCH/v1/products/{id}/model

Sets the model's review decision, independently of the images and of the product. 400 for a decision back to pending or a model that is not ready; 404 when the product has no model.

Path Parameters

id*Id

The product's id.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The model's review decision.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/model" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "status": "planned",  "review_status": "pending",  "thumbnail_url": "string",  "scale_factor": 0,  "width_axis": "x",  "flags": {    "transparent": false,    "geometry_risk": false,    "texture_risk": false,    "source_quality": "ok",    "reasons": [      {        "code": "string",        "sentence": "string"      }    ]  },  "warnings": [    {      "kind": "cut",      "scope": "image",      "title": "string",      "detail": "string",      "view": "string"    }  ],  "created_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z"}
{  "error": {    "code": "string",    "message": "string",    "details": null  }}