Query classification nodes
| /pim/nodes/query Gets node ids. |
Allow to query classification nodes ids by:
-
product tid
-
product id
-
attribute definition id
-
attribute definition tid
-
attribute id
Resource path |
/api/core/v1/pim/nodes/query |
HTTP method |
POST |
Request content type |
application/json; |
Response content type |
application/json; |
| API restriction for users without admin role - endpoint is not available. |
Body parameters
Specified by NodesQueryRequest
Return Type
Specified by NodesRequest
Responses
| Code | Message | Datatype |
|---|---|---|
200 |
Found classification nodes ids. |
|
400 |
Invalid input provided |
|
401 |
Not authorized |
|
500 |
An unknown internal error occurred |
Samples
Query classification nodes
curl
curl --location --request POST 'https://<OMN_SERVER>/api/core/v1/pim/nodes/retrieve' \
--header 'Authorization: Bearer <TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
"productId": 123
}'
Request body. By product id
{
"productId": 18765
}
Request body. By product tid
{
"productTid": "A239A197-5287-494A-B5EE-36F3EB0E95AB"
}
Request body. By attribute id
{
"attributeId": "986655"
}
Request body. By attribute definition id
{
"attributeDefinitionId": "778554"
}
Request body. By attribute definition tid
{
"attributeDefinitionTid": "7D534991-B623-418C-A7CB-A273C877A37D"
}
Response body
{
"ids": [756362, 34345, 43213],
"level": 1
}