Tag several requests
POSThttps://app.notert.io/api/v1/requests/tags
Puts tags on several requests and takes others off them at once, as the token's holder, as the requests list does over the requests picked there. Every other tag each wears stays as it is, so a tag a teammate put on one meanwhile stays. A request this token can't read, on a board it isn't held to, deleted or named by a key no request holds, is left out and named in notFoundIds as the call named it. A tag that isn't the workspace's is PICKS_GONE, and nothing changes. Asking again changes nothing.
A token with requests:manage. How to send one
Request
curl -X POST https://app.notert.io/api/v1/requests/tags \
-H "Authorization: Bearer $NOTERT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"requestIds": [
"8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40"
],
"addTagIds": [
"8e2f4a6c-1b3d-4e5f-9a7b-2c4d6e8f0a13"
],
"removeTagIds": []
}'Response 200
{
"changed": [
{
"requestId": "8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40",
"addedTagIds": [
"8e2f4a6c-1b3d-4e5f-9a7b-2c4d6e8f0a13"
],
"removedTagIds": []
}
],
"notFoundIds": []
}Body
requestIdsstring[]RequiredThe requests to change, by their ids or keys, up to 100.
addTagIdsstring[]Tags to put on every one of them. One a request wears already stays.
Default [].
removeTagIdsstring[]Tags to take off every one of them.
Default [].
Response 200
changedobject[]Each request whose tags changed; one that wore them as asked is left out.
requestIdstringThe request's id.
addedTagIdsstring[]The tags it put on this request.
removedTagIdsstring[]The tags it took off this request.
notFoundIdsstring[]The requests named that this token can't read, on another board, deleted or named by a key no request holds, each as the call named it.
Errors
- 400
BAD_REQUESTInput validation failed. - 401
UNAUTHORIZEDSend a valid API token as a Bearer token. - 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
WORKSPACE_SUSPENDEDThis workspace is suspended. - 409
CHANGED_MEANWHILESomething changed meanwhile. Try again. - 409
PICKS_GONEA board, tag or teammate it names isn't in this workspace. Pick another, or leave it out. Its data holdsboard,tagIds,ownerIds,author. - 409
TAGS_FULLA request named would wear more than 50 tags, counting those a teammate added since. data.requestId says which. Take some off it, then send your change once more. Its data holdsrequestId. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.