POST Units
Creates a unit.
Request Information
URI Parameters
None.
Body Parameters
Unit to be created. UnitId should not be filled in.
Unit| Name | Description | Type | Additional information |
|---|---|---|---|
| UnitId | globally unique identifier |
None. |
|
| Code | string |
None. |
|
| Description | string |
None. |
|
| SourceSystemId | string |
None. |
|
| CompanyId | globally unique identifier |
None. |
|
| CreateDate | date |
None. |
|
| CreateUser | string |
None. |
|
| LastModifiedDate | date |
None. |
|
| LastModifiedUser | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UnitId": "2f919953-cc5f-4f1d-9cfb-d29753fd5cf7",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "dd8331af-e822-4cc9-9fcd-ac7b3867f4bc",
"CreateDate": "2025-11-04T16:00:25.9153151-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T16:00:25.9153151-08:00",
"LastModifiedUser": "sample string 6"
}
Response Information
Resource Description
On success, the created unit.
| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Unit |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"UnitId": "11b69209-f2cb-46e9-90df-200d7f8fc550",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "b07e5a46-7f01-4d61-85d9-9378051161c5",
"CreateDate": "2025-11-04T16:00:25.9153151-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T16:00:25.9153151-08:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}