Link this issue to another issue
POST/api/issues/{issue_id}/links
createIssueLink
`A blocks B`, `A blocked_by B`, `A related B`, `A duplicate_of B`, or `A duplicates B`. Always writes the symmetric back-link (e.g. `(B, A, blocked_by)`) in the same transaction so the link surface is coherent from either side.
Requires authentication using a bearer token or a session cookie — see tokens and scopes.
curl
curl -X POST 'https://neosource.dev/api/issues/ISSUE_ID/links' \
-H 'Authorization: Bearer $NEOSOURCE_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"target_issue_id":"string","link_kind":"string"}'fetch
fetch("https://neosource.dev/api/issues/ISSUE_ID/links", {
method: "POST",
headers: {
Authorization: "Bearer $NEOSOURCE_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({"target_issue_id":"string","link_kind":"string"}),
});Path parameters
issue_idrequired
Request bodyrequired
application/json
Responses
201Link created
application/json
403Forbidden — one of: forbidden, needs_scope
application/json
one of
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 401Authentication required
- 404Not Found — one of: not_found
- 409Conflict — one of: already_exists, conflict, github_sync_active
- 429Rate limited — retry after the `Retry-After` header
- 500Internal server error
- 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
- 504Gateway timeout — the request exceeded the server's handling budget
Schemas
Referenced above. Listed here rather than expanded inline, so the same definition is not repeated at every level.
IssueStatus
"backlog""todo""in_progress""in_review""done""cancelled""duplicate"