/api/user/tags

View or create tags that are assigned to files.

Info

This endpoint requires authentication.

GET
Request

Response

Status: 200 OK

Content-Type: application/json

An array of Tag objects.

POST
Request

Body

Content-Type: application/json

PropertyTypeDescription
namestringRequired. Name for the tag.
colorstringRequired. Color for the tag (HEX).

Example

Create a tag named "Screenshots" with a red color.

{
"name": "Screenshots",
"color": "#ff0000"
}

Response

Status: 200 OK

Content-Type: application/json

A Tag object representing the created tag.

Error Responses

  • 400 Bad Request

    If the request body is invalid, missing required fields, or a tag with the same name already exists.



Last updated: 6/1/2025
Edit this page on GitHub