How can I select/filter on one term from a taxonomy using its tid?

Created on 1 June 2023, about 1 year ago

Problem/Motivation

Sorry for asking such a basic question, but I have not found any example for that.

I want to select the term with tid 593 from the vocabulary company. (I do not want to filter nodes by terms. I just want the term directly from the vocabulary)

I tried:

jsonapi/taxonomy_term/company?filter[taxonomy_term--company][condition][value]=593

jsonapi/taxonomy_term/company?attributes[drupal_internal__tid]=593

jsonapi/taxonomy_term/company?fields[taxonomy_term--company]=593

but it is either returning an error or all results.

Can someone please post an example. Thank you!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ’¬ Support request
Status

Active

Version

10.1 ✨

Component
JSON APIΒ  β†’

Last updated 1 day ago

Created by

πŸ‡¦πŸ‡ΉAustria maxilein

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024