Returns a Taxon
curl --request GET \
--url http://{defaultHost}/api/v2/platform/taxons/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "52",
"type": "taxon",
"attributes": {
"position": 0,
"name": "taxon_18",
"permalink": "taxonomy-29/taxon-18",
"lft": 4,
"rgt": 5,
"description": null,
"created_at": "2022-11-08T19:35:50.654Z",
"updated_at": "2022-11-08T19:35:50.657Z",
"meta_title": null,
"meta_description": null,
"meta_keywords": null,
"depth": 1,
"public_metadata": {},
"private_metadata": {},
"pretty_name": "taxonomy_29 -> taxon_18",
"seo_title": "taxon_18",
"is_root": false,
"is_child": true,
"is_leaf": true
},
"relationships": {
"parent": {
"data": {
"id": "50",
"type": "taxon"
}
},
"taxonomy": {
"data": {
"id": "29",
"type": "taxonomy"
}
},
"children": {
"data": []
},
"products": {
"data": []
},
"image": {
"data": {
"id": "98",
"type": "taxon_image"
}
}
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Select which associated resources you would like to fetch, see: <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>
Record found
The response is of type object
.
Was this page helpful?
curl --request GET \
--url http://{defaultHost}/api/v2/platform/taxons/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "52",
"type": "taxon",
"attributes": {
"position": 0,
"name": "taxon_18",
"permalink": "taxonomy-29/taxon-18",
"lft": 4,
"rgt": 5,
"description": null,
"created_at": "2022-11-08T19:35:50.654Z",
"updated_at": "2022-11-08T19:35:50.657Z",
"meta_title": null,
"meta_description": null,
"meta_keywords": null,
"depth": 1,
"public_metadata": {},
"private_metadata": {},
"pretty_name": "taxonomy_29 -> taxon_18",
"seo_title": "taxon_18",
"is_root": false,
"is_child": true,
"is_leaf": true
},
"relationships": {
"parent": {
"data": {
"id": "50",
"type": "taxon"
}
},
"taxonomy": {
"data": {
"id": "29",
"type": "taxonomy"
}
},
"children": {
"data": []
},
"products": {
"data": []
},
"image": {
"data": {
"id": "98",
"type": "taxon_image"
}
}
}
}
}