Skip to content

Update a tag

patch/api/tag/:id
Update 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>

Router Params

idnumber
required
ID of the tag.

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_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"
}