Rename a tag
PATCHhttps://app.notert.io/api/v1/tags/{id}
Renames a tag, or changes its chip's color with it, as the token's holder, who must be an owner or admin, through a token that reaches every board (TOKEN_HELD_TO_BOARDS), since every request wearing it shows the new name at once. A color left out stays. A name is the workspace's once in any case (NAME_TAKEN). One deleted, or another workspace's, is NOT_FOUND. Answers the tag.
A token with requests:manage. How to send one
Request
curl -X PATCH https://app.notert.io/api/v1/tags/8e2f4a6c-1b3d-4e5f-9a7b-2c4d6e8f0a13 \
-H "Authorization: Bearer $NOTERT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Integrations",
"color": "blue"
}'Response 200
{
"id": "8e2f4a6c-1b3d-4e5f-9a7b-2c4d6e8f0a13",
"name": "Integrations"
}Path parameters
idstringRequiredThe tag's id.
At most 64 characters.
Body
namestringRequiredIts name now, up to 48 characters. Send the name it has to change only its color.
At least 1 character. At most 48 characters.
colorstringThe color its chip wears in the app, one of the colors the schema lists. Green when left out.
One ofgraygoldbronzebrownyellowamberorangeredrubycrimsonpinkplumpurplevioletirisindigobluecyantealjadegreenlimemintsky
Response 200
idstringThe tag's id.
namestringThe tag's name.
Errors
- 400
BAD_REQUESTInput validation failed. - 401
UNAUTHORIZEDSend a valid API token as a Bearer token. - 403
FORBIDDENThe teammate who holds this API token's secret can't rename tags. Only an owner or admin can. - 403
HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. - 403
INSUFFICIENT_SCOPEThis API token can't change or delete requests, their status or their place on the roadmap. Create one that may in the workspace's settings. - 403
NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. - 403
NO_SEATThis workspace's plan has no seat for you. - 403
TOKEN_HELD_TO_BOARDSA tag is worn by requests on every board, so this token, held to some, can't rename one. Use a token that reaches every board. - 403
WORKSPACE_SUSPENDEDThis workspace is suspended. - 404
NOT_FOUNDNot Found. - 409
CHANGED_MEANWHILESomething changed meanwhile. Try again. - 409
NAME_TAKENAnother tag already has that name. Pick another. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.