Skip to content

Update a work item relation definition ​

PATCH/api/v2/workspaces/{slug}/work-item-relation-definitions/{pk}/

Change a custom relation definition. Send only the fields you want to change.

Changes apply across the workspace at once:

  • A new outward or inward label also applies to the relations that already use the definition. They show under the new label in every relations list.
  • is_active: false hides the definition and every relation that uses it from relations lists, and new relations with it return 404. The relations are kept and come back when you send is_active: true.

The three default definitions are read-only. Any update to one returns 400, even a change to color.

You need to be a workspace owner or admin, and the workspace's plan must include custom relations, or the response is 402.

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.

pk:requiredstring (uuid)

The id of the relation definition to update.

Body parameters ​

name:optionalstring

Display name for the relation type. Maximum 255 characters. Another definition in the workspace with the same name returns 409.

outward:optionalstring

The label the source work item shows. Maximum 255 characters. Another definition with the same outward label returns 409.

inward:optionalstring

The label the target work item shows. Maximum 255 characters. Another definition with the same inward label returns 409.

description:optionalstring

What the relation type means.

is_active:optionalboolean

Whether relations can use the definition. false retires it without deleting it or the relations that use it.

color:optionalstring

Color for the relation type, for example #16a34a. Maximum 255 characters.

logo_props:optionalobject

Free-form icon metadata Plane uses to render the relation type.

sort_order:optionalnumber

Manual ordering weight. Lower sorts first.

external_id:optionalstring

Your system's identifier for this definition. Maximum 255 characters, and accepts null.

external_source:optionalstring

The system external_id came from, for example jira. Maximum 255 characters, and accepts null. Send it with external_id: the check for a clashing pair only runs when the body has both.

is_default is read-only.

Response shaping ​

fields:optionalstring

Comma-separated list of fields to return. Fields you don't request are left out of the response instead of coming back as null, so a missing key means you didn't ask for it and null means the value is null. id is always included, whether or not you name it.

Pass all to get every requestable field. An unknown field name returns 400 with the list of valid names and the closest match, so a typo is caught instead of being silently ignored.

Requestable here: color, created_at, created_by_id, description, external_id, external_source, id, inward, is_active, is_default, logo_props, name, outward, sort_order, updated_at, updated_by_id.

See Sparse fields.

Scopes ​

workspaces.work_item_relation_definitions:write

Errors ​

StatusCodeCause
400invalid_requestThe definition is a default one, so it can't be modified.
400invalid_requestA field is empty, longer than 255 characters, or has the wrong type. See errors[].
401unauthorizedMissing or invalid credentials.
402payment_requiredCustom relations aren't included in the workspace's plan.
403forbiddenYou aren't a workspace owner or admin, or your token scope doesn't allow this.
404not_foundNo such definition or workspace, or it's outside your tenant.
406not_acceptableThe Accept header asks for a representation the API can't produce.
409conflictAnother definition in the workspace already uses this name, outward label, or inward label. The match is exact.
409conflictAnother definition already uses this external_id and external_source pair. The response detail names its id.
409governance_migration_in_progressA governance migration is running in this workspace, so writes are paused. Retry after it finishes.
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.
Update a work item relation definition
bash
curl -X PATCH \
  "https://api.plane.so/api/v2/workspaces/my-team/work-item-relation-definitions/7a4c9e12-5f3b-4d68-8e01-2b6d9f4a3c85/" \
  -H "X-Api-Key: $PLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "outward": "verifies",
  "inward": "verified by"
}'
Response200
json
{
  "id": "7a4c9e12-5f3b-4d68-8e01-2b6d9f4a3c85",
  "name": "Tests",
  "description": "A QA work item that verifies a feature",
  "outward": "verifies",
  "inward": "verified by",
  "is_default": false,
  "is_active": true,
  "color": "#16a34a",
  "logo_props": {},
  "sort_order": 262140.0,
  "external_id": null,
  "external_source": null,
  "created_at": "2026-03-02T10:15:27.531904Z",
  "updated_at": "2026-03-18T08:41:56.017342Z",
  "created_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
  "updated_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430"
}
Response400
json
{
  "type": "invalid_request",
  "code": "invalid_request",
  "detail": "A default relation definition cannot be modified."
}