PUT
/
products
/
{id}
curl --request PUT \
  --url https://v2.firstpromoter.com/api/v2/company/products/{id} \
  --header 'Account-ID: <account-id>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "ext_id": "<string>",
  "prices": [
    {
      "ext_id": "<string>",
      "desc": "<string>"
    }
  ]
}'
{
  "id": 123,
  "name": "<string>",
  "ext_id": "<string>",
  "prices": [
    {
      "ext_id": "<string>",
      "desc": "<string>"
    }
  ],
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key passed as a Bearer token in the Authorization header. You can find your API Key on Your FirstPromoter Dashboard. Navigate to Settings → Integrations section → Manage API Keys

Headers

Account-ID
string
required

Account ID. You can find your Account ID on Your FirstPromoter Dashboard. Navigate to Settings → Integrations

Path Parameters

id
integer
required

ID of the product to be updated

Body

application/json

Response

200
application/json

Product updated successfully

The response is of type object.