Update a work item ​
PATCH/api/v1/workspaces/{slug}/projects/{project_id}/work-items/{pk}/
Partially update an existing work item with the provided fields. Supports external ID validation to prevent conflicts.
Path Parameters ​
pk:requiredstringPk.
project_id:requiredstringProject ID
slug:requiredstringWorkspace slug
Body Parameters ​
assignees:optionalarrayAssignees.
labels:optionalarrayLabels.
type_id:optionalstringType id.
parent:optionalstringParent.
deleted_at:optionalstringDeleted at.
point:optionalintegerPoint.
name:optionalstringName.
description_html:optionalstringDescription html.
description_stripped:optionalstringDescription stripped.
priority:optionalstringurgent- Urgenthigh- Highmedium- Mediumlow- Lownone- None
start_date:optionalstringStart date.
target_date:optionalstringTarget date.
sequence_id:optionalintegerSequence id.
sort_order:optionalnumberSort order.
completed_at:optionalstringCompleted at.
archived_at:optionalstringArchived at.
last_activity_at:optionalstringLast activity at.
is_draft:optionalbooleanIs draft.
external_source:optionalstringExternal source.
external_id:optionalstringExternal id.
created_by:optionalstringCreated by.
state:optionalstringState.
estimate_point:optionalstringEstimate point.
type:optionalstringType.
Scopes ​
projects.work_items:write
Update a work item
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-446655440000/" \
-H "X-API-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Example Name",
"description": "Example description",
"priority": "medium",
"state": "550e8400-e29b-41d4-a716-446655440000",
"assignees": [
"550e8400-e29b-41d4-a716-446655440000"
],
"labels": [
"550e8400-e29b-41d4-a716-446655440000"
]
}'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-446655440000/",
headers={"X-API-Key": "your-api-key"},
json={
"name": "Example Name",
"description": "Example description",
"priority": "medium",
"state": "550e8400-e29b-41d4-a716-446655440000",
"assignees": [
"550e8400-e29b-41d4-a716-446655440000"
],
"labels": [
"550e8400-e29b-41d4-a716-446655440000"
]
}
)
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-446655440000/",
{
method: "PATCH",
headers: {
"X-API-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Example Name",
description: "Example description",
priority: "medium",
state: "550e8400-e29b-41d4-a716-446655440000",
assignees: ["550e8400-e29b-41d4-a716-446655440000"],
labels: ["550e8400-e29b-41d4-a716-446655440000"],
}),
}
);
const data = await response.json();Response200
json
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Example Name",
"description": "Example description",
"sequence_id": 1,
"priority": "high",
"assignees": ["550e8400-e29b-41d4-a716-446655440000"],
"labels": ["550e8400-e29b-41d4-a716-446655440000"],
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
