Get categorization attributes for one item
GET /api/bom/v1/part_version/{partVersionId}/category_attribute
gets all categorization attributes and their values for the specified item.
Request schema
Method |
URL |
GET |
/api/bom/v1/part_version/{partVersionId}/category_attribute |
*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 for which you want to get all its assigned categorization attributes and their values. |
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. |
Response schema
Response body
200 response
Field |
Value Type |
Description |
No field name |
Array |
The array contains data on categorization attributes and their values for the specified item. The response body contains the following parameters for every attribute on the item:attributeID - Categorization attribute IDcategoryID - The ID of the category the attribute belongs tovalueDate - The date value of the attribute if the value type is DATEvalueDecimal - The decimal value of the attribute if the value type is FLOATvalueID - The ID of the attribute value set on the itemvalueInteger - The number value of the attribute if the value type is INTEGERvalueLOV - The selected drop-down value of the attribute if the value type is LOV (drop-down list)valueString - The text value of the attribute if the value type is STRING
|
Sample response body
[
{
"attributeID": 9520,
"categoryID": 1271,
"itemID": 1269575,
"valueDate": null,
"valueDecimal": null,
"valueID": 19617,
"valueInteger": 2131,
"valueLOV": null,
"valueString": null
},
{
"attributeID": 9532,
"categoryID": 1271,
"itemID": 1269575,
"valueDate": null,
"valueDecimal": null,
"valueID": 19618,
"valueInteger": null,
"valueLOV": 3152,
"valueString": null
},
{
"attributeID": 9533,
"categoryID": 1271,
"itemID": 1269575,
"valueDate": null,
"valueDecimal": null,
"valueID": 19619,
"valueInteger": null,
"valueLOV": 3153,
"valueString": null
}
]