Skip to content

Add or remove project release work items ​

POST/api/v2/workspaces/{slug}/projects/{project_id}/releases/{pk}/work-items/

Change a project release's scope by adding and removing work items in one request. Adding a work item links it to the release without moving or changing it. Removing it only removes the link.

The API runs remove first, then add, and answers with what changed:

  • removed lists the ids from remove that were on the release. Ids that weren't on it are ignored.
  • added lists every id from add that matched a work item in the workspace that you can see, including work items already on the release. Other ids are skipped without an error.

Compare added with what you sent to find ids that were skipped. To read the scope afterward, use List a project release's work items, or filter the work items list with ?release_id={pk}.

Path Parameters ​

slug:requiredstring

The workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.

project_id:requiredstring

The project the release belongs to. Accepts the project UUID or its bare identifier, for example ENG.

pk:requiredstring (uuid)

The id of the release to change.

Body Parameters ​

add:optionalarray of string (uuid)

Ids of work items to add to the release. Defaults to an empty array.

remove:optionalarray of string (uuid)

Ids of work items to take out of the release. Defaults to an empty array.

Scopes ​

releases:write

Errors ​

StatusCodeCause
400invalid_requestadd or remove isn't an array, or an entry isn't a UUID.
401unauthorizedMissing or invalid credentials.
402payment_requiredProject releases aren't enabled on your plan.
403forbiddenYour role in the project can't edit this release, or your token scope doesn't allow this.
404not_foundNo release with this id in this project, or no such workspace or project.
406not_acceptableThe Accept header asks for a representation the API can't produce.
409conflictNot raised by this endpoint. The spec lists it for every v2 write.
413payload_too_largeThe request body is over the size limit.
415unsupported_media_typeThe Content-Type isn't one this endpoint accepts.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
Add or remove project release work items
bash
curl -X POST \
  "https://api.plane.so/api/v2/workspaces/my-team/projects/4af68566-94a4-4eb3-94aa-50dc9427067b/releases/3e8a1f52-7c4b-4d9e-a6f1-0b2c5d8e9f14/work-items/" \
  -H "X-Api-Key: $PLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "add": [
    "8f4c2b1e-0d3a-4f7b-9c21-6e5a8b7d4f13",
    "3b7d9e40-1c62-4a85-b0f3-9d5c2e6a8471"
  ],
  "remove": ["a7e51d24-3b98-4c6d-9f10-7d2c8e4b5a61"]
}'
Response200
json
{
  "added": ["8f4c2b1e-0d3a-4f7b-9c21-6e5a8b7d4f13", "3b7d9e40-1c62-4a85-b0f3-9d5c2e6a8471"],
  "removed": ["a7e51d24-3b98-4c6d-9f10-7d2c8e4b5a61"]
}