Link a request to an issue
PUThttps://app.notert.io/api/v1/requests/{id}/issues/{tracker}
Links a request to an issue of the workspace's GitHub or Linear, as the token's holder, as the issue picker on its page does. It replaces any issue the request was linked to in that tracker, and the request then follows the issue's status as the workspace's settings say. A pull request can't be linked (PULL_REQUEST): link the issue it closes. The link it has already changes nothing.
A token with requests:manage. How to send one
Request
curl -X PUT https://app.notert.io/api/v1/requests/8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40/issues/github \
-H "Authorization: Bearer $NOTERT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"issue": "acme/web#168"
}'Response 200
{
"requestId": "8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40",
"issue": {
"tracker": "github",
"name": "acme/web#168",
"title": "Dark mode",
"state": "open",
"url": "https://github.com/acme/web/issues/168"
}
}Path parameters
idstringRequiredThe request's id. Where an endpoint takes one, its key as its page shows it, such as REQ-44, works too.
At most 64 characters.
trackerstringRequiredThe tracker: github or linear, either one the workspace connected.
One oflineargithub
Body
issuestringRequiredThe issue: on GitHub owner/repo#12 or its address, in Linear its name such as ENG-123, its id or its address.
At least 1 character. At most 300 characters.
Response 200
requestIdstringThe request's id.
issueobjectThe issue it is linked to now, as its tracker says it stands.
trackerstringThe tracker: github or linear, either one the workspace connected.
One oflineargithubnamestringWhat people call the issue in its tracker: owner/repo#12 on GitHub, ENG-123 in Linear. A link takes it back.
titlestringThe issue's title in the tracker.
statestringWhere the issue stands, as its tracker says: open or closed, or a Linear state.
urlstringThe issue's page in its tracker.
Errors
- 400
BAD_REQUESTInput validation failed. - 400
ISSUE_NAME_REFUSEDName a GitHub issue as owner/repo#12 or by its address, and a Linear issue as ENG-123, by its id or by its address. - 400
PULL_REQUESTThat is a pull request, and only an issue can be linked. Link the issue it closes. - 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. - 404
NOT_FOUNDNot Found. - 409
CHANGED_MEANWHILESomething changed meanwhile. Try again. - 409
TRACKER_NOT_CONNECTEDThis workspace hasn't connected that tracker, or it no longer lets Notert in. An owner or admin can connect it on the Integrations page. - 409
TRACKER_PAUSEDThat tracker is paused, since the workspace has more integrations than its plan includes. - 409
TRACKER_REFUSEDThe tracker refused that: the issue, repository or team may not exist, or the app may not see it. - 409
TRACKER_UNAVAILABLEThe tracker didn't answer. Try again in a moment. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.