Create a work item ​
POST/api/v1/workspaces/{workspace_slug}/projects/{project_id}/work-items/
Creates a new work item in a project.
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.
Body Parameters ​
name:requiredstringName of the work item.
description_html:optionalstringHTML-formatted description of the work item.
state:optionalstringID of the state for the work item.
assignees:optionalstring[]Array of user IDs to assign to the work item.
priority:optionalstringPriority level. Possible values: none, urgent, high, medium, low.
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.
Create a work item
bash
curl -X POST \
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-items/" \
-H "X-API-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "example-name",
"description_html": "example-description_html",
"state": "example-state",
"assignees": "example-assignees",
"priority": "example-priority",
"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"
}'python
import requests
response = requests.post(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-items/",
headers={"X-API-Key": "your-api-key"},
json={
'name': 'example-name',
'description_html': 'example-description_html',
'state': 'example-state',
'assignees': 'example-assignees',
'priority': 'example-priority',
'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())javascript
const response = await fetch('https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-items/', {
method: 'POST',
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',
assignees: 'example-assignees',
priority: 'example-priority',
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();Response201
json
{
"id": "project-uuid",
"name": "Project Name",
"identifier": "PROJ",
"description": "Project description",
"created_at": "2024-01-01T00:00:00Z"
}
