Requests - Tags API
List all tags of a request
Заголовок раздела «List all tags of a request»List all tags of a request with a specific ID.
GET /requests/:id/tags
Response
Заголовок раздела «Response»Status: 200 OK[ { "id": 1, "name": "My Tag" }]Add a tag to a request
Заголовок раздела «Add a tag to a request»Add a tag to a request by its name.
POST /requests/:id/tags
Body:
{ "name": "My Tag"}Response
Заголовок раздела «Response»Status: 200 OK{ "id": 1, "name": "My Tag"}Remove a tag from a request
Заголовок раздела «Remove a tag from a request»Remove the link between a request with a specific ID and a tag with a specific ID.
DELETE /requests/:id/tags/:tag_id
Response
Заголовок раздела «Response»Status: 204 No ContentRemove all tags from a request
Заголовок раздела «Remove all tags from a request»Remove all links between a request with a specific ID and its tags.
DELETE /requests/:id/tags
Response
Заголовок раздела «Response»Status: 204 No Content