# Here is a curl example
curl \
X GET -H "Authorization:{token}" http://localhost:8888/api/BOM/WhereUsedFromParentKey
?parent_key=8870-e7037640c5eb&object_id=111&record_id=111111
This method gets a single level of parents for the selected node. It should be used after the Where Used (top levels), however if you have the parent key, it can be used at any time.
To get Where Used (in BOMs), you need to make a GET call to the following url
:
http://localhost:8888/api/BOM/WhereUsedFromParentKey
Result example :
[
{
"revision": "string",
"system_obj_nbs": "string",
"system_obj_description": "string",
"folder": "string",
"version_index": 0,
"checked_status": 0,
"sub_object_guid": "string",
"is_visibility_normal": true,
"max_version": 0,
"file_name": "string",
"configuration": "string",
"bom_source": "string",
"record_id": 0,
"object_id": 0,
"record_guid": "string",
"parent_object_id": 0,
"parent_guid": "string",
"object_type": 0,
"is_latest": 0,
"parent_record_id": 0,
"parent_record_guid": "string",
"level": 0,
"key_id": "string",
"parent_key_id": 0,
"p_key_id": "string",
"key_order_id": 0,
"parent_version": 0,
"date_modified": "string",
"is_visible": true,
"has_children": true,
"grid_record_guid": "string"
}
]
| Field | Parameter Type | Type | Description |
|---|---|---|---|
| key | query | string | Parent Key. You can get from another method (http://localhost:8888/api/BOM/WhereUsed) |
| object_id | query | long | Object Id. |
| record_id | query | long | Record Id. |
| version | query | integer | Version (Optional - default -1). |
| Authorization | header | string | Add Authorization header token |