taxonomy

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-taxonomy"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/c5dc3a1d-51b3-496c-aa50-15d3d4cca3ff/social-card.svg?v=3e7ae33eec8b" alt="taxonomy" width="600" height="315"></a>
PATCHhttps://lucidace.com/v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}Scope settings:write

Parameters

project_idstringpathrequired
plan_idstringpathrequired
branch_idstringpathrequired

Request body

application/json
descriptionstring
namestring
schemaobject
The 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_schemaobjectrequired
The live plan's document when the branch was cut (three-way merge base).
base_versionintegerrequired
created_atstringrequired
created_bystring
descriptionstringrequired
idstringrequired
merged_atstring
merged_bystring
merged_versioninteger
namestringrequired
plan_idstringrequired
review_notestringrequired
reviewed_atstring
reviewed_bystring
schemaobjectrequired
The branch's draft plan document.
statusstringrequired
draft | in_review | changes_requested | approved | merged | closed
updated_atstringrequired
400
403
404
409
GEThttps://lucidace.com/v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}/diffScope settings:read

Parameters

project_idstringpathrequired
plan_idstringpathrequired
branch_idstringpathrequired

Code 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_versionintegerrequired
changesobjectrequired
What the branch changes relative to the plan it was cut from (PlanDiff).
conflictsstring[]required
Slots changed on both sides (events/<name>, global_props/<name>, top-level keys).
live_versionintegerrequired
merge_previewobject
What merging now would change in the live plan (PlanDiff); null when it conflicts.
stalebooleanrequired
The live plan moved on since the branch was cut.
404
POSThttps://lucidace.com/v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}/mergeScope settings:write

Parameters

project_idstringpathrequired
plan_idstringpathrequired
branch_idstringpathrequired

Request body

application/json
forceboolean
Merge 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
branchobjectrequired
Show child parameters
base_schemaobjectrequired
The live plan's document when the branch was cut (three-way merge base).
base_versionintegerrequired
created_atstringrequired
created_bystring
descriptionstringrequired
idstringrequired
merged_atstring
merged_bystring
merged_versioninteger
namestringrequired
plan_idstringrequired
review_notestringrequired
reviewed_atstring
reviewed_bystring
schemaobjectrequired
The branch's draft plan document.
statusstringrequired
draft | in_review | changes_requested | approved | merged | closed
updated_atstringrequired
planobjectrequired
Show child parameters
created_atstringrequired
idstringrequired
modestringrequired
off | warn | enforce
namestringrequired
project_idstringrequired
schemaobjectrequired
{events: [...]} (see docs/plan/12 governance).
updated_atstringrequired
versionintegerrequired
400
403
404
409 Not approved, or both sides changed the same event
POSThttps://lucidace.com/v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}/rebaseScope settings:write

Parameters

project_idstringpathrequired
plan_idstringpathrequired
branch_idstringpathrequired

Request 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
POSThttps://lucidace.com/v1/projects/{project_id}/tracking-plans/{plan_id}/branches/{branch_id}/reviewScope settings:write

Parameters

project_idstringpathrequired
plan_idstringpathrequired
branch_idstringpathrequired

Request body

application/json
actionstringrequired
submit (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