Update a catalog product
const url = 'https://app.prokure.ca/api/v1/products/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"oem_partner_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","model":"example","description":"example","commodity_codes":["example"],"specs":{"additionalProperty":"example"},"rep_status":"carried","status":"active","source_url":"https://example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://app.prokure.ca/api/v1/products/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --data '{ "oem_partner_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "model": "example", "description": "example", "commodity_codes": [ "example" ], "specs": { "additionalProperty": "example" }, "rep_status": "carried", "status": "active", "source_url": "https://example.com" }'Saves changes and durably requests background indexing and staged matching when relevant fields change. Existing archive and notification states are preserved.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Changes one product. Every field is optional and an absent field is left alone; an explicit null clears model, description or source_url. Discontinuing a product is how it is removed from matching – products are never deleted.
Changes one product. Every field is optional and an absent field is left alone; an explicit null clears model, description or source_url. Discontinuing a product is how it is removed from matching – products are never deleted.
object
Free-form technical attributes stored verbatim. A bounded, deterministically ordered subset informs background indexing and matching as untrusted catalog data.
object
Responses
Section titled “Responses”Default Response
object
The manufacturer partner’s name, joined on for display.
object
Carried = stocked and represented; catalog = available to quote.
Products are never deleted. A discontinued product stops influencing matching and can be reactivated.
Example
{ "rep_status": "carried", "status": "active"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}