Create a work item relation definition
Add a custom relation type to the workspace, for example Tests with the labels tests and tested by. Every project in the workspace can use it as soon as it exists.
The new definition goes after the existing ones in sort_order. It is never a default definition: is_default is always false.
Pick labels that no other definition uses on either side. The relations list groups related work items by label, so a shared label mixes two relation types under one key.
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.
Body parameters
name:requiredstringDisplay name for the relation type, for example Tests. Maximum 255 characters. Another definition in the workspace with the same name returns 409.
outward:requiredstringThe label the source work item shows, for example tests, so the relation reads "ENG-42 tests ENG-17". Maximum 255 characters. Another definition with the same outward label returns 409.
inward:requiredstringThe label the target work item shows, for example tested by. Maximum 255 characters. Another definition with the same inward label returns 409. Send the same text as outward for a symmetric relation type.
description:optionalstringWhat the relation type means. Defaults to an empty string.
is_active:optionalbooleanWhether relations can use the definition. Defaults to true. Send false to create it now and turn it on later.
color:optionalstringColor for the relation type, for example #16a34a. Maximum 255 characters. Defaults to an empty string.
logo_props:optionalobjectFree-form icon metadata Plane uses to render the relation type. Defaults to {}.
sort_order:optionalnumberIgnored on create. The new definition always sorts after the existing ones. To move it, update sort_order afterwards.
external_id:optionalstringYour system's identifier for this definition, for sync and import correlation. Maximum 255 characters, and accepts null.
external_source:optionalstringThe system external_id came from, for example jira. Maximum 255 characters, and accepts null. An external_id is unique only within its source, so send 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 | name, outward, or inward is missing, empty, or longer than 255 characters, or another field 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 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 POST \
"https://api.plane.so/api/v2/workspaces/my-team/work-item-relation-definitions/" \
-H "X-Api-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Tests",
"outward": "tests",
"inward": "tested by",
"description": "A QA work item that verifies a feature",
"color": "#16a34a"
}'import requests
response = requests.post(
"https://api.plane.so/api/v2/workspaces/my-team/work-item-relation-definitions/",
headers={"X-Api-Key": "your-api-key"},
json={
"name": "Tests",
"outward": "tests",
"inward": "tested by",
"description": "A QA work item that verifies a feature",
"color": "#16a34a",
},
)
print(response.json())const response = await fetch(
"https://api.plane.so/api/v2/workspaces/my-team/work-item-relation-definitions/",
{
method: "POST",
headers: {
"X-Api-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Tests",
outward: "tests",
inward: "tested by",
description: "A QA work item that verifies a feature",
color: "#16a34a",
}),
},
);
const data = await response.json();{
"id": "7a4c9e12-5f3b-4d68-8e01-2b6d9f4a3c85",
"name": "Tests",
"description": "A QA work item that verifies a feature",
"outward": "tests",
"inward": "tested 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-02T10:15:27.531904Z",
"created_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
"updated_by_id": null
}{
"type": "conflict",
"code": "conflict",
"detail": "A relation definition with this name/label already exists in the workspace."
}Next steps
Link work items with the new type through Create a work item relation, passing the id returned above as relation_definition_id and tests or tested by as direction.

