Add work items to module
POST/api/v1/workspaces/{slug}/projects/{project_id}/modules/{module_id}/module-issues/
Assign multiple work items to a module or move them from another module. Automatically handles bulk creation and updates with activity tracking.
Path Parameters
module_id:requiredstringModule ID
project_id:requiredstringProject ID
slug:requiredstringWorkspace slug
Body Parameters
issues:requiredarrayList of issue IDs to add to the module
Scopes
projects.modules:write
Add work items to module
bash
curl -X POST \
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/modules/550e8400-e29b-41d4-a716-446655440001/module-issues/" \
-H "X-API-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"issues": [
"550e8400-e29b-41d4-a716-446655440000",
"550e8400-e29b-41d4-a716-446655440000"
]
}'python
import requests
response = requests.post(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/modules/550e8400-e29b-41d4-a716-446655440001/module-issues/",
headers={"X-API-Key": "your-api-key"},
json={
"issues": [
"550e8400-e29b-41d4-a716-446655440000",
"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/modules/550e8400-e29b-41d4-a716-446655440001/module-issues/",
{
method: "POST",
headers: {
"X-API-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
issues: ["550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440000"],
}),
}
);
const data = await response.json();Response200
json
[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"module": "550e8400-e29b-41d4-a716-446655440000",
"issue": "550e8400-e29b-41d4-a716-446655440000",
"sub_issues_count": 2,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
]
