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": "50c3ec6a-f401-4840-a87e-4ab4729e1864", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "a6985e69-5b7c-4d6d-89b1-cf7e31b2102f", "CreateDate": "2024-11-21T05:30:29.6244052-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T05:30:29.6244052-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": "de452932-4cae-4f19-aee1-abc53f63777a", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "9045dca3-c23b-4a35-ad0f-5f1cf0f83cdf", "CreateDate": "2024-11-21T05:30:29.6244052-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T05:30:29.6244052-08:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }