taxonomy
PATCH
https://lucidace.com /v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id} Scope settings:writeParameters
project_idstringpathrequiredplan_idstringpathrequiredbranch_idstringpathrequiredRequest body
application/json
descriptionstringnamestringschemaobjectThe full draft plan document; a change sends a reviewed branch back to
draft.{
"description": "string",
"name": "string",
"schema": {}
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}" \
-H "Content-Type: application/json" \
-d '{"description":"string","name":"string","schema":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"base_schema": {},
"base_version": 0,
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "string",
"merged_at": "2024-01-01T00:00:00Z",
"merged_by": "string",
"merged_version": 0,
"name": "string",
"plan_id": "string",
"review_note": "string",
"reviewed_at": "2024-01-01T00:00:00Z",
"reviewed_by": "string",
"schema": {},
"status": "string",
"updated_at": "2024-01-01T00:00:00Z"
}Schema
base_schemaobjectrequiredThe live plan's document when the branch was cut (three-way merge base).
base_versionintegerrequiredcreated_atstringrequiredcreated_bystringdescriptionstringrequiredidstringrequiredmerged_atstringmerged_bystringmerged_versionintegernamestringrequiredplan_idstringrequiredreview_notestringrequiredreviewed_atstringreviewed_bystringschemaobjectrequiredThe branch's draft plan document.
statusstringrequireddraft | in_review | changes_requested | approved | merged | closedupdated_atstringrequired400
403
404
409
GET
https://lucidace.com /v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}/diff Scope settings:readParameters
project_idstringpathrequiredplan_idstringpathrequiredbranch_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}/diff"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"base_version": 0,
"changes": {},
"conflicts": [
"string"
],
"live_version": 0,
"merge_preview": {},
"stale": true
}Schema
base_versionintegerrequiredchangesobjectrequiredWhat the branch changes relative to the plan it was cut from (
PlanDiff).conflictsstring[]requiredSlots changed on both sides (
events/<name>, global_props/<name>, top-level keys).live_versionintegerrequiredmerge_previewobjectWhat merging now would change in the live plan (
PlanDiff); null when it conflicts.stalebooleanrequiredThe live plan moved on since the branch was cut.
404
POST
https://lucidace.com /v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}/merge Scope settings:writeParameters
project_idstringpathrequiredplan_idstringpathrequiredbranch_idstringpathrequiredRequest body
application/json
forcebooleanMerge without an approval (project admins only).
{
"force": true
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}/merge" \
-H "Content-Type: application/json" \
-d '{"force":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 The live plan now carries the branch (a new plan version)
Example
{
"branch": {
"base_schema": {},
"base_version": 0,
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "string",
"merged_at": "2024-01-01T00:00:00Z",
"merged_by": "string",
"merged_version": 0,
"name": "string",
"plan_id": "string",
"review_note": "string",
"reviewed_at": "2024-01-01T00:00:00Z",
"reviewed_by": "string",
"schema": {},
"status": "string",
"updated_at": "2024-01-01T00:00:00Z"
},
"plan": {
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"mode": "string",
"name": "string",
"project_id": "string",
"schema": {},
"updated_at": "2024-01-01T00:00:00Z",
"version": 0
}
}Schema
branchobjectrequiredShow child parameters
base_schemaobjectrequiredThe live plan's document when the branch was cut (three-way merge base).
base_versionintegerrequiredcreated_atstringrequiredcreated_bystringdescriptionstringrequiredidstringrequiredmerged_atstringmerged_bystringmerged_versionintegernamestringrequiredplan_idstringrequiredreview_notestringrequiredreviewed_atstringreviewed_bystringschemaobjectrequiredThe branch's draft plan document.
statusstringrequireddraft | in_review | changes_requested | approved | merged | closedupdated_atstringrequiredplanobjectrequiredShow child parameters
created_atstringrequiredidstringrequiredmodestringrequiredoff | warn | enforcenamestringrequiredproject_idstringrequiredschemaobjectrequired{events: [...]} (see docs/plan/12 governance).updated_atstringrequiredversionintegerrequired400
403
404
409 Not approved, or both sides changed the same event
POST
https://lucidace.com /v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}/rebase Scope settings:writeParameters
project_idstringpathrequiredplan_idstringpathrequiredbranch_idstringpathrequiredRequest body
application/json
take_branchstring[]Conflict slots (as
diff lists them) to resolve with the branch's value; the rest must merge cleanly.{
"take_branch": [
"string"
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}/rebase" \
-H "Content-Type: application/json" \
-d '{"take_branch":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 The branch now sits on the live plan's version
Same as 200 · PATCH /v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}
403
404
409
POST
https://lucidace.com /v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}/review Scope settings:writeParameters
project_idstringpathrequiredplan_idstringpathrequiredbranch_idstringpathrequiredRequest body
application/json
actionstringrequiredsubmit (draft/changes_requested -> in_review), approve / request_changes (in_review), close (any open branch).notestring{
"action": "string",
"note": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}/review" \
-H "Content-Type: application/json" \
-d '{"action":"string","note":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
400
403 The author approving without project admin
404
409
Updated