PATCH
/
v1
/
products
/
{id}
Update Product
curl --request PATCH \
  --url https://api.withflex.com/v1/products/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "product": {
    "description": "<string>",
    "upc_code": "<string>",
    "gtin": "<string>",
    "reference_gtin": "<string>",
    "visit_type": "cbtSleep",
    "url": "<string>",
    "hsa_fsa_eligibility": "not_eligible",
    "active": true,
    "metadata": {}
  }
}'
{
  "product": {
    "product_id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "created_at": "<string>",
    "visit_type": "cbtSleep",
    "active": true,
    "upc_code": "<string>",
    "gtin": "<string>",
    "reference_gtin": "<string>",
    "hsa_fsa_eligibility": "not_eligible",
    "eligibility_rationale": "<string>",
    "test_mode": true,
    "metadata": {},
    "url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Body

application/json

Response

200
application/json

The response is of type object.