Update an item's categorization attributes
PATCH /api/bom/v1/part_version/{partVersionId}/category_attribute
updates a categorization attribute value set on a specific item.
Request schema
Method | URL |
---|---|
PATCH | /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 in which you want to edit categorization attributes. |
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 |
---|---|---|
*newAttributeValues |
Array | Contains an array of attribute IDs and values they should be updated to. For every attribute the following parameters should be set:
Note: Only one value field should be set in the request; in other words, if the value type is STRING then only valueString should be set. |
Sample request body
{
"newAttributeValues": [
{
"attributeID": 9531,
"valueDecimal": 10000
}
]
}
Response schema
A successful request returns an empty 200-HTTP response.