Update a work item ​
Updates an existing work item by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path Parameters ​
workspace_slug:requiredstringThe workspace_slug represents the unique workspace identifier for a workspace in Plane. It can be found in the URL. For example, in the URL https://app.plane.so/my-team/projects/, the workspace slug is my-team.
project_id:requiredstringThe unique identifier of the project.
work_item_id:requiredstringThe unique identifier for the work item.
Body Parameters ​
name:optionalstringName of the work item.
description_html:optionalstringHTML-formatted description of the work item.
state:optionalstringID of the state for the work item.
priority:optionalstringPriority level. Possible values: none, urgent, high, medium, low.
assignees:optionalstring[]Array of user IDs to assign to the work item.
labels:optionalstring[]Array of label IDs to apply to the work item.
parent:optionalstringID of the parent work item.
estimate_point:optionalstringEstimate points for the work item (0-7).
type:optionalstringID of the work item type.
module:optionalstringID of the module the work item belongs to.
start_date:optionalstringStart date in YYYY-MM-DD format.
target_date:optionalstringTarget completion date in YYYY-MM-DD format.
curl -X PATCH \
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-items/work-item-uuid/" \
-H "X-API-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "example-name",
"description_html": "example-description_html",
"state": "example-state",
"priority": "example-priority",
"assignees": "example-assignees",
"labels": "example-labels",
"parent": "example-parent",
"estimate_point": "example-estimate_point",
"type": "example-type",
"module": "example-module",
"start_date": "example-start_date",
"target_date": "example-target_date"
}'import requests
response = requests.patch(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-items/work-item-uuid/",
headers={"X-API-Key": "your-api-key"},
json={
'name': 'example-name',
'description_html': 'example-description_html',
'state': 'example-state',
'priority': 'example-priority',
'assignees': 'example-assignees',
'labels': 'example-labels',
'parent': 'example-parent',
'estimate_point': 'example-estimate_point',
'type': 'example-type',
'module': 'example-module',
'start_date': 'example-start_date',
'target_date': 'example-target_date'
}
)
print(response.json())const response = await fetch(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-items/work-item-uuid/",
{
method: "PATCH",
headers: {
"X-API-Key": "your-api-key",
"Content-Type": "application/json"
},
body: JSON.stringify({
"name": "example-name",
"description_html": "example-description_html",
"state": "example-state",
"priority": "example-priority",
"assignees": "example-assignees",
"labels": "example-labels",
"parent": "example-parent",
"estimate_point": "example-estimate_point",
"type": "example-type",
"module": "example-module",
"start_date": "example-start_date",
"target_date": "example-target_date"
})
}
);
const data = await response.json();{
"id": "project-uuid",
"name": "Project Name",
"identifier": "PROJ",
"description": "Project description",
"created_at": "2024-01-01T00:00:00Z"
}
