Enable or disable a project plan area, task, or subtask
POST/api/project-plans:set-enabled
It applies the cascade rules across the area → task → subtask hierarchy. Returns the full owning area tree after the change.
Required permissions:
- project_plan.edit: allows updating project plan entities.
Cascade rules:
- Area: enable/disable cascades to all its tasks and subtasks.
- Task: disable cascades to its subtasks; enable also enables the parent area (siblings untouched).
- Subtask: enable also enables the parent task and area; disable leaves parents untouched.
Request
Header Parameters
The company you want to interact with
The API version you want to use
- application/json
Body
Possible values: [area, task, subtask]
The type of project plan entity to enable/disable
The ID of the project plan entity to enable/disable
Whether the entity should be enabled. Cascades across the area/task/subtask hierarchy.
Responses
- 200
- 400
- 401
- 403
- 404
- 412
Returns the full owning area tree (area → tasks → subtasks) after the enabled cascade.
- application/json
- Schema
- Example (from schema)
- Example
Schema
object
{}
{
"id": 1,
"name": "Design",
"enabled": false,
"project_plan_tasks": [
{
"id": 10,
"enabled": false,
"project_plan_subtasks": [
{
"id": 100,
"enabled": false
}
]
}
]
}
Validation failed
- application/json
- Schema
- Example (from schema)
Schema
- ResponseHeaderBag
Array [
]
headers
object
oneOf
Default value: 64
Error unique key
Human-readable message describing the error
failures
object[]
List of validation errors
Name of the field causing the error
Human-readable description of the error
{
"headers": {},
"content": "string",
"version": "string",
"status_code": 0,
"status_text": "string",
"charset": "string",
"callback": "string",
"encoding_options": 64,
"key": "invalid_data",
"message": "You provided invalid data. Check 'failures' for details.",
"failures": [
{
"field": "string",
"message": "string"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
- ResponseHeaderBag
headers
object
oneOf
Default value: 64
Error unique key
Human-readable message describing the error
{
"headers": {},
"content": "string",
"version": "string",
"status_code": 0,
"status_text": "string",
"charset": "string",
"callback": "string",
"encoding_options": 64,
"key": "string",
"message": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
- ResponseHeaderBag
headers
object
oneOf
Default value: 64
Error unique key
Human-readable message describing the error
{
"headers": {},
"content": "string",
"version": "string",
"status_code": 0,
"status_text": "string",
"charset": "string",
"callback": "string",
"encoding_options": 64,
"key": "string",
"message": "string"
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
- ResponseHeaderBag
headers
object
oneOf
Default value: 64
Error unique key
Human-readable message describing the error
{
"headers": {},
"content": "string",
"version": "string",
"status_code": 0,
"status_text": "string",
"charset": "string",
"callback": "string",
"encoding_options": 64,
"key": "not_found",
"message": "string"
}
Precondition failed
- application/json
- Schema
- Example (from schema)
Schema
- ResponseHeaderBag
headers
object
oneOf
Default value: 64
Error unique key
Human-readable message describing the error
{
"headers": {},
"content": "string",
"version": "string",
"status_code": 0,
"status_text": "string",
"charset": "string",
"callback": "string",
"encoding_options": 64,
"key": "precondition_failure",
"message": "string"
}