Update a link ​
PATCH/api/v1/workspaces/{slug}/projects/{project_id}/work-items/{issue_id}/links/{pk}/
Modify the URL, title, or metadata of an existing issue link.
Path Parameters ​
issue_id:requiredstringIssue ID
pk:requiredstringLink ID
project_id:requiredstringProject ID
slug:requiredstringWorkspace slug
Body Parameters ​
title:optionalstringTitle.
url:optionalstringUrl.
Scopes ​
projects.work_items.links:write
Update a link
bash
curl -X PATCH \
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/links/550e8400-e29b-41d4-a716-446655440000/" \
-H "X-API-Key: $PLANE_API_KEY" \
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/resource",
"title": "Example Name"
}'python
import requests
response = requests.patch(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/links/550e8400-e29b-41d4-a716-446655440000/",
headers={"X-API-Key": "your-api-key"},
json={
"url": "https://example.com/resource",
"title": "Example Name"
}
)
print(response.json())javascript
const response = await fetch(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/links/550e8400-e29b-41d4-a716-446655440000/",
{
method: "PATCH",
headers: {
"X-API-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
url: "https://example.com/resource",
title: "Example Name",
}),
}
);
const data = await response.json();Response200
json
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://example.com/resource",
"title": "Example Name",
"metadata": {
"title": "Example Name",
"description": "Example description",
"image": "https://example.com/assets/example-image.png"
},
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
