curl --request POST \
--url http://{defaultHost}/api/v2/platform/taxons \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taxon": {
"taxonomy_id": "<string>",
"name": "<string>",
"parent_id": "<string>",
"public_metadata": {
"ability_to_recycle": "90%"
},
"private_metadata": {
"profitability": 2
}
}
}
'{
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {},
"relationships": {}
}
}Creates a Taxon
curl --request POST \
--url http://{defaultHost}/api/v2/platform/taxons \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taxon": {
"taxonomy_id": "<string>",
"name": "<string>",
"parent_id": "<string>",
"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
Was this page helpful?