Update a work item relation definition
Change a custom relation definition. Send only the fields you want to change.
Changes apply across the workspace at once:
- A new
outwardorinwardlabel also applies to the relations that already use the definition. They show under the new label in every relations list. is_active: falsehides the definition and every relation that uses it from relations lists, and new relations with it return404. The relations are kept and come back when you sendis_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:requiredstringThe 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:optionalstringDisplay name for the relation type. Maximum 255 characters. Another definition in the workspace with the same name returns 409.
outward:optionalstringThe label the source work item shows. Maximum 255 characters. Another definition with the same outward label returns 409.
inward:optionalstringThe label the target work item shows. Maximum 255 characters. Another definition with the same inward label returns 409.
description:optionalstringWhat the relation type means.
is_active:optionalbooleanWhether relations can use the definition. false retires it without deleting it or the relations that use it.
color:optionalstringColor for the relation type, for example #16a34a. Maximum 255 characters.
logo_props:optionalobjectFree-form icon metadata Plane uses to render the relation type.
sort_order:optionalnumberManual ordering weight. Lower sorts first.
external_id:optionalstringYour system's identifier for this definition. Maximum 255 characters, and accepts null.
external_source:optionalstringThe 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:optionalstringComma-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
| Status | Code | Cause |
|---|---|---|
400 | invalid_request | The definition is a default one, so it can't be modified. |
400 | invalid_request | A field is empty, longer than 255 characters, or has the wrong type. See errors[]. |
401 | unauthorized | Missing or invalid credentials. |
402 | payment_required | Custom relations aren't included in the workspace's plan. |
403 | forbidden | You aren't a workspace owner or admin, or your token scope doesn't allow this. |
404 | not_found | No such definition or workspace, or it's outside your tenant. |
406 | not_acceptable | The Accept header asks for a representation the API can't produce. |
409 | conflict | Another definition in the workspace already uses this name, outward label, or inward label. The match is exact. |
409 | conflict | Another definition already uses this external_id and external_source pair. The response detail names its id. |
409 | governance_migration_in_progress | A governance migration is running in this workspace, so writes are paused. Retry after it finishes. |
413 | payload_too_large | The request body is over the size limit. |
415 | unsupported_media_type | The Content-Type isn't one this endpoint accepts. |
429 | rate_limited | Throttled. Honor the Retry-After header before retrying. |
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"
}'import requests
response = requests.patch(
"https://api.plane.so/api/v2/workspaces/my-team/work-item-relation-definitions/7a4c9e12-5f3b-4d68-8e01-2b6d9f4a3c85/",
headers={"X-Api-Key": "your-api-key"},
json={"outward": "verifies", "inward": "verified by"},
)
print(response.json())const response = await fetch(
"https://api.plane.so/api/v2/workspaces/my-team/work-item-relation-definitions/7a4c9e12-5f3b-4d68-8e01-2b6d9f4a3c85/",
{
method: "PATCH",
headers: {
"X-Api-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({ outward: "verifies", inward: "verified by" }),
},
);
const data = await response.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"
}{
"type": "invalid_request",
"code": "invalid_request",
"detail": "A default relation definition cannot be modified."
}
