You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(V2): document optional fields for unit split endpoint
The v2/unit/split example used incorrect v1 field names (unitOwner,
countryJurisdictionOfOwner) and was missing supported optional fields.
Add field reference tables and fix the example to use the correct v2
field names: unitCurrentOwner, unitStatusReason, unitStatusDate.
Copy file name to clipboardExpand all lines: docs/cadt_rpc_api_v2.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3594,6 +3594,25 @@ Response
3594
3594
3595
3595
#### Split unit into multiple units
3596
3596
3597
+
Splits an existing unit into multiple units. Each new unit inherits all fields from the original unit, then overrides only the fields you provide in each record. The first record keeps the original unit's `cadTrustUnitId`; subsequent records receive new UUIDs.
3598
+
3599
+
**Required fields per record:**
3600
+
3601
+
| Field | Type | Description |
3602
+
|---|---|---|
3603
+
|`unitCount`| number | Number of units in this split. The sum of all `unitCount` values must equal the original unit's `unitCount`. |
3604
+
3605
+
**Optional fields per record** (override the original unit's values):
3606
+
3607
+
| Field | Type | Description |
3608
+
|---|---|---|
3609
+
|`unitBlockStart`| string | Start block for this split. If both `unitBlockStart` and `unitBlockEnd` are provided, `unitSerialId` is automatically derived. |
3610
+
|`unitBlockEnd`| string | End block for this split. |
3611
+
|`unitCurrentOwner`| string | New owner for this split. |
3612
+
|`unitStatus`| string | Status for this split (e.g., "Issued", "Held", "Retired"). |
3613
+
|`unitStatusReason`| string | Reason for the status. |
3614
+
|`unitStatusDate`| string | Date of the status change (YYYY-MM-DD). |
3615
+
3597
3616
Request
3598
3617
```shell
3599
3618
curl --location -g --request POST 'localhost:31310/v2/unit/split' \
0 commit comments