Update a catalog service
const url = 'https://app.prokure.ca/api/v1/services/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","commodity_codes":["example"],"delivery_mode":"remote","regions_served":["example"],"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/services/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "example", "commodity_codes": [ "example" ], "delivery_mode": "remote", "regions_served": [ "example" ], "status": "active", "source_url": "https://example.com" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Changes one service. Every field is optional and an absent field is left alone; an explicit null clears delivery_mode or source_url. Discontinuing a service is how it is taken out of matching; services are never deleted.
Changes one service. Every field is optional and an absent field is left alone; an explicit null clears delivery_mode or source_url. Discontinuing a service is how it is taken out of matching; services are never deleted.
Responses
Section titled “Responses”A service the company delivers itself, as opposed to a manufacturer partner’s product. Active services are matched against notices next to products.
A service the company delivers itself, as opposed to a manufacturer partner’s product. Active services are matched against notices next to products.
object
Unique within the account, ignoring case.
Where the service is offered. Empty means the company profile’s geography applies.
Services are never deleted. A discontinued service stops influencing matching and can be reactivated.
Example
{ "delivery_mode": "remote", "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"}