Skip to content

Create a new tag

post/api/tag
Create a tag for the logged-in user.

Request

Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.Example: Authorization: Bearer <token>

Body application/json

namestring
required
Name of the tag.

Response

Schema: application/json
codestring
dataundefined
messagestring

Body application/json

json
// SUCCESS

{
  "code": "0",
  "message": "Ok"
}
// SUCCESS

{
  "code": "0",
  "message": "Ok"
}
json
// TAG_ALREADY_EXISTS
{
  "code": "402",
  "message": "Tag already exists"
}
// TAG_ALREADY_EXISTS
{
  "code": "402",
  "message": "Tag already exists"
}
json
// TAG_CREATE_FAILED

{
  "code": "403",
  "message": "Tag create failed"
}
// TAG_CREATE_FAILED

{
  "code": "403",
  "message": "Tag create failed"
}