Update a website's tags
Adds tags to a website, removes tags from it, or both in one call. Use it to change a website’s labels without resending the whole list.
Repeating a call is safe: adding a tag the website already carries, or removing one it does not carry, changes nothing. Returns the website.
Body
add_tags(array of integers, required unlessremove_tagsis sent): ids of the tags to attach.remove_tags(array of integers, required unlessadd_tagsis sent): ids of the tags to detach.
Errors
- 422: a tag id appears in both lists or matches no tag. The id of a tag that belongs to another organization is ignored, not rejected.
Authentication
AuthorizationBearer
Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.
Path parameters
site
Query parameters
include
Set to tags to embed the website's resulting tags in the answer.
Request
This endpoint expects an object.
Response
200 - Tags updated
data
included
jsonapi
