Update a custom property
Updates an existing custom property by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path Parameters
workspace_slug:requiredstringThe workspace_slug represents the unique workspace identifier for a workspace in Plane. It can be found in the URL. For example, in the URL https://app.plane.so/my-team/projects/, the workspace slug is my-team.
project_id:requiredstringThe unique identifier of the project.
type_id:requiredstringThe unique identifier for the work item type.
property_id:requiredstringThe unique identifier for the custom property.
Body Parameters
display_name:requiredstringDisplay name shown in the UI.
description:optionalstringDescription of the custom property.
default_value:optionalstring[]Default value(s) for the property.
validation_rules:optionalobjectValidation rules applied to property values.
is_required:optionalbooleanWhether this property is required when creating work items.
is_active:optionalbooleanWhether this property is currently active.
is_multi:optionalbooleanWhether this property allows multiple values.
curl -X PATCH \
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-item-types/{type_id}/work-item-properties/{property_id}/" \
-H "X-API-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"display_name": "example-display_name",
"description": "example-description",
"default_value": "example-default_value",
"validation_rules": "example-validation_rules",
"is_required": true,
"is_active": true,
"is_multi": true
}'import requests
response = requests.patch(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-item-types/{type_id}/work-item-properties/{property_id}/",
headers={"X-API-Key": "your-api-key"},
json={
'display_name': 'example-display_name',
'description': 'example-description',
'default_value': 'example-default_value',
'validation_rules': 'example-validation_rules',
'is_required': true,
'is_active': true,
'is_multi': true
}
)
print(response.json())const response = await fetch(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-item-types/{type_id}/work-item-properties/{property_id}/",
{
method: "PATCH",
headers: {
"X-API-Key": "your-api-key",
"Content-Type": "application/json"
},
body: JSON.stringify({
"display_name": "example-display_name",
"description": "example-description",
"default_value": "example-default_value",
"validation_rules": "example-validation_rules",
"is_required": true,
"is_active": true,
"is_multi": true
})
}
);
const data = await response.json();{
"id": "project-uuid",
"name": "Project Name",
"identifier": "PROJ",
"description": "Project description",
"created_at": "2024-01-01T00:00:00Z"
}
