Update a custom property ​
PATCH/api/v1/workspaces/{slug}/projects/{project_id}/work-item-types/{type_id}/work-item-properties/{property_id}/
Update an issue property
Path Parameters ​
project_id:requiredstringProject ID
property_id:requiredstringProperty id.
slug:requiredstringWorkspace slug
type_id:requiredstringType ID
Body Parameters ​
relation_type:optionalstringISSUE- IssueUSER- User
options:optionalarrayList of options to create when property_type is OPTION. Each option should have 'name', optionally 'description', 'is_default', 'external_id', and 'external_source'.
display_name:optionalstringDisplay name.
description:optionalstringDescription.
property_type:optionalstringTEXT- TextDATETIME- DatetimeDECIMAL- DecimalBOOLEAN- BooleanOPTION- OptionRELATION- RelationURL- URLEMAIL- EmailFILE- FileFORMULA- Formula
is_required:optionalbooleanIs required.
default_value:optionalarrayDefault value.
settings:optionalobjectSettings.
is_active:optionalbooleanIs active.
is_multi:optionalbooleanIs multi.
validation_rules:optionalobjectValidation rules.
external_source:optionalstringExternal source.
external_id:optionalstringExternal id.
formula_config:optionalstringFormula config.
Scopes ​
projects.work_item_properties:write
Update a custom property
bash
curl -X PATCH \
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-item-types/550e8400-e29b-41d4-a716-446655440001/work-item-properties/550e8400-e29b-41d4-a716-446655440001/" \
-H "X-API-Key: $PLANE_API_KEY" \
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Example Name",
"description": "Example description",
"property_type": "OPTION",
"external_id": "550e8400-e29b-41d4-a716-446655440000",
"external_source": "github"
}'python
import requests
response = requests.patch(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-item-types/550e8400-e29b-41d4-a716-446655440001/work-item-properties/550e8400-e29b-41d4-a716-446655440001/",
headers={"X-API-Key": "your-api-key"},
json={
"name": "Example Name",
"description": "Example description",
"property_type": "OPTION",
"external_id": "550e8400-e29b-41d4-a716-446655440000",
"external_source": "github"
}
)
print(response.json())javascript
const response = await fetch(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-item-types/550e8400-e29b-41d4-a716-446655440001/work-item-properties/550e8400-e29b-41d4-a716-446655440001/",
{
method: "PATCH",
headers: {
"X-API-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Example Name",
description: "Example description",
property_type: "OPTION",
external_id: "550e8400-e29b-41d4-a716-446655440000",
external_source: "github",
}),
}
);
const data = await response.json();Response200
json
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"name": "Example Name",
"display_name": "Example Name",
"description": "Example description",
"property_type": "TEXT",
"deleted_at": "2024-01-01T00:00:00Z",
"relation_type": "ISSUE",
"logo_props": "example-value",
"sort_order": 1,
"is_required": true
}
