curl --request POST \
--url http://{defaultHost}/api/v2/platform/taxonomies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taxonomy": {
"name": "<string>",
"position": 2,
"public_metadata": {
"ability_to_recycle": "90%"
},
"private_metadata": {
"profitability": 2
}
}
}
'{
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {},
"relationships": {}
}
}Creates a Taxonomy
curl --request POST \
--url http://{defaultHost}/api/v2/platform/taxonomies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taxonomy": {
"name": "<string>",
"position": 2,
"public_metadata": {
"ability_to_recycle": "90%"
},
"private_metadata": {
"profitability": 2
}
}
}
'{
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {},
"relationships": {}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes
Show child attributes
Pass the position that you want this Taxonomy to appear in. (The list is not zero indexed, so the first item is position: 1)
2
{ "ability_to_recycle": "90%" }
{ "profitability": 2 }
Was this page helpful?