Update company profile
const url = 'https://app.prokure.ca/api/v1/profile';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"updates":[{"field":"categories","op":"add","value":"example"}]}'};
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/profile \ --header 'Content-Type: application/json' \ --data '{ "updates": [ { "field": "categories", "op": "add", "value": "example" } ] }'Request Bodyrequired
Section titled “Request Bodyrequired”Between 1 and 50 updates, applied in order. Each is independent: one being skipped or failing does not stop the rest, and the response reports both outcomes. Where two updates in the same request touch one field, the last wins.
Between 1 and 50 updates, applied in order. Each is independent: one being skipped or failing does not stop the rest, and the response reports both outcomes. Where two updates in the same request touch one field, the last wins.
object
Add or remove a single entry on a list field. Matching on remove is case-insensitive; adding an entry already on the list is reported as skipped, not an error.
object
Replace the free-text company overview.
object
Set the company’s role in the supply chain, or null to clear it.
Set whether the company qualifies as a Canadian supplier, or null to clear it.
Set a contract-value bound in whole dollars, or null to clear it. A batch that would leave the minimum above the maximum is skipped rather than applied.
Responses
Section titled “Responses”Default Response
object
object
object
object
object
Example
{ "applied": [ { "field": "categories" } ], "skipped": [ { "field": "categories", "op": "add", "reason": "already_present" } ]}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"}