Datas
  • Forside
  • App-udvikling
  • Hosting
  • Support
  • Kontakt os
Kontakt mig
113 Fulton Street, Suite 721
New York, NY 10010
[email protected]
+88 (0) 101 0000 000
  • facebook
  • twitter
  • youtube
  • instagram

Purchase

General

6
  • user
  • Tags
  • Sorting
  • Roles API
  • Categories
  • Auth
View Categories
  • Home
  • Docs
  • General
  • Tags

Tags

< 1 min read

Tags API #

Base path: /tags


GET /tags #

Returns a list of all tags. Supports includes (categories) in the response.


GET /tags/{id} #

Returns a single tag by its ID.


POST /tags #

Creates a new tag.
Returns the created tag.
Validation rules:

  • name: required array, unique per translation
  • type: optional
  • categories: optional array
    Possible errors: 422 (validation error)

PUT/PATCH /tags/{id} #

Updates an existing tag.
Returns the updated tag.
Validation rules:

  • name: optional, unique per translation (ignores current tag ID)
  • type: optional
  • categories: optional array
    Possible errors: 422 (validation error), 404 (tag not found)

DELETE /tags/{id} #

Deletes a tag.
Returns no content on success.
Possible errors: 404 (tag not found)


GET /tags/type/{type} #

Returns tags filtered by type.

Behavior:

  • type="*" → returns all tags
  • type="string" → returns tags of that type
  • type=array → returns tags matching any of the types
  • type=null → returns empty collection

Notes:

  • Tags can be associated with categories.
  • Categories can be attached or updated when creating or updating a tag.
  • Tag names support translations and must be unique per locale.
  • Related resources (categories) are included by default.
Updated on March 29, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
userSorting

Powered by BetterDocs

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • Tags API
    • GET /tags
    • GET /tags/{id}
    • POST /tags
    • PUT/PATCH /tags/{id}
    • DELETE /tags/{id}
    • GET /tags/type/{type}

Copyrights 2019 Ninetheme

113 Fulton Street, Suite 721 New York, NY 10010
[email protected]
+88 (0) 101 0000 000
datas_logo_white_sm

Datas / Digitalis
Cvr. 35953787

Energivej 30
2750 Ballerup

Kontakt mig

  • [email protected]
  • +45 93307121

Links

  • Hosting kontrakt
  • Api dokumentation