Create a development link
Manually links one development artifact (branch, commit, or pull request) to a work item. The link points at the artifact in its provider; it never mutates the repository.
POST
/api/v1/work-items/:id/engineering/linksAuthorization
work-items:linkapi key scoperequiredRequired scope when calling with an API key.
Path parameters
idstringrequiredCanonical work-item ID
Example: work_01k2...
Request body
artifact_typestringrequired"branch" | "commit" | "pull_request"Kind of development artifact
external_refstringrequiredProvider-native reference: branch name, commit SHA, or PR number
repository_full_namestringrequiredowner/repo the artifact lives in
provider_keystringoptionalProvider identifier (defaults to github)
external_urlstringoptionalDeep link to the artifact
titlestringoptionalDisplay title snapshot
Example request
{
"artifact_type": "pull_request",
"external_ref": "42",
"repository_full_name": "acme/storefront",
"title": "Checkout redesign"
}Request
curl -X POST "https://www.digitalstack360.com/api/v1/work-items/work_01k2.../engineering/links" \
-H "Authorization: Bearer $DS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"artifact_type":"pull_request","external_ref":"42","repository_full_name":"acme/storefront","title":"Checkout redesign"}'Examples use a placeholder key from your environment. Store your key in $DS_API_KEY — never commit it.
Response
200 OK
{
"data": {
"id": "del_01k2...",
"providerKey": "github",
"repositoryFullName": "acme/storefront",
"artifactType": "pull_request",
"externalRef": "42",
"linkMethod": "manual"
}
}Errors
401
missing_authNo credentials provided
401
invalid_api_keyAPI key is invalid or revoked
400
bad_requestMissing or invalid request fields
403
scope_insufficientKey lacks the required write scope
403
scope_insufficientKey lacks work-items:link scope
404
not_foundWork item does not exist or is outside the resolved workspace
400
invalid_linkLink fields fail validation
409
link_already_existsThis artifact is already linked to the work item