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": "098f2dc5-a121-4645-8b5b-39be2f599aac", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "6a72a2e1-1d52-4294-843b-3ae18bab61a7", "CreateDate": "2024-10-10T01:35:32.1686267-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T01:35:32.1686267-07: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": "3fc791a4-aea4-4060-9790-4f06a816010d", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3ffdba9b-c9b7-458b-9878-94ccb5bc21ff", "CreateDate": "2024-10-10T01:35:32.1686267-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T01:35:32.1686267-07:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }