Add categorization attributes to an item
POST /api/bom/v1/part_version/{partVersionId}/category_attribute
adds attributes with empty values from specified categories to an item. This effectively adds the specified categories to the item without any categorization attributes. To enter values into the categorization attributes on the items, you must use PATCH /api/bom/v1/part_version/{partVersionId}/category_attribute
as described in Update an item's categorization attributes.
Request schema
Method | URL |
---|---|
POST | /api/bom/v1/part_version/{partVersionId}/category_attribute |
Request header
*indicates required parameters
Field | Value Type | Description |
---|---|---|
*Authorization |
String | Enter: Bearer access token. |
*Upc-Selected-Company |
Integer | Company’s ID. Use the value returned in the id field received in response to the following request: GET /api/auth/v1/companies . |
*PartVersionId |
Integer | The ID of the item to add categorization to. |
X-User-Id |
Text | Enter the email address of the user being impersonated. This value is required if you are using a two-legged token. If you are using a three-legged token, then this field is not required. |
Request body
Field | Value Type | Description |
---|---|---|
*selectedCategory |
Array | Contains an array with IDs of the categories from which the attributes should be added to the item. |
Sample request body
{
"selectedCategory": [
{
"categoryID": 1294
}
]
}
Response schema
A successful request returns an empty 200-HTTP response.