Categorize a supplier

Update the categories of a supplier. You can pass categories that don't belong to the same category group. The sum of categories of a same group must equal 1. In the following example, the two first categories belong to the same category group A, the sum of the weights is 1. The third category belongs to a category group B, its weight is 1.

[
  { "id": 59, "weight": "0.5" }, // category group A
  { "id": 33, "weight": "0.5" }, // category group A
  { "id": 65, "weight": "1" }    // category group B
]
ℹ️

This endpoint requires the following scope: suppliers:all

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required
Body Params
Headers
string

Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.

Responses

414

URI Too Long: the request URL exceeds the maximum length. Shorten the query string, for example by sending fewer values per query parameter and splitting them across several requests.

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json