POST Units
Creates a unit.
Request Information
URI Parameters
None.
Body Parameters
Unit to be created. UnitId should not be filled in.
UnitName | 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": "fb657c58-7d24-4418-9bab-691d1b95d0c6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "195f4648-ef39-485a-b6fa-93157e9122db", "CreateDate": "2024-11-21T04:40:09.0258266-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:40:09.0258266-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": "d69e8fa9-66a3-4f6c-9994-28f855f14941", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "26b41bf6-c0a6-4d17-905a-0ca910e22392", "CreateDate": "2024-11-21T04:40:09.0258266-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:40:09.0258266-08:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }