Update a tag
patch
/api/tag/:idUpdate a tag for the logged-in user.
Request
Security:
Bearer AuthRouter Params
idnumber
required
ID of the tag.
Body 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_NOT_FOUND
{
"code": "401",
"message": "Tag not found"
}// TAG_NOT_FOUND
{
"code": "401",
"message": "Tag not found"
}json
// TAG_ALREADY_EXISTS
{
"code": "402",
"message": "Tag already exists"
}// TAG_ALREADY_EXISTS
{
"code": "402",
"message": "Tag already exists"
}json
// TAG_UPDATE_FAILED
{
"code": "404",
"message": "Tag update failed"
}// TAG_UPDATE_FAILED
{
"code": "404",
"message": "Tag update failed"
}