Create a new tag
post
/api/tagCreate a tag for the logged-in user.
Request
Security:
Bearer AuthBody application/json
namestring
required
Name of the tag.
Response
Schema:
application/jsonBody 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"
}