How to format the JSON for tags (and other taxonomies?)

Created on 4 April 2023, about 1 year ago
Updated 3 May 2023, about 1 year ago

Problem/Motivation

I'm trying to figure out the right format for uploading new tags with a new article/node.

This answer suggests that it can be done with a predefined ID. But what if the tag is new? The regular UI will allow new Tags and create the taxonomy entry when presented with it.

https://drupal.stackexchange.com/questions/299497/unprocessable-entity-t...

I've tried several formats. At first, validation rejected putting the tags in with the data. When I moved them into the "relationships" section of the JSON, the validation passed but the tags were ignored.

Any suggestions or help would be greatly appreciated. Thanks in advance.

πŸ’¬ Support request
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bogdog400

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

Comments & Activities

Production build 0.69.0 2024