1000

Adding a taxonomy field

976

Editing a taxonomy field

The taxonomies field will return an array of taxonomy id's that you can then use to query the taxonomies endpoint.

{ "name": "taxonomy_field", "label": "Taxonomy Field", "class": "taxonomy", "value": [ 1 ], "relationship": { "type": "taxonomy", "class": "category" } }

Taxonomies are also included in the response as top-level objects:

{ "category": [ [ { "term_id": 1, "name": "Uncategorized", "slug": "uncategorized", "term_group": 0, "term_taxonomy_id": 1, "taxonomy": "category", "description": "", "parent": 0, "count": 1, "filter": "raw" } ] ] }

📘

_links

The endpoints for related content, such as taxonomies, are included in each resource's _links attribute.

See more information on this field.