POST Assets
Creates a new asset.
Request Information
URI Parameters
None.
Body Parameters
The asset to create. AssetId should not be filled in.
AssetName | Description | Type | Additional information |
---|---|---|---|
AssetId | globally unique identifier |
None. |
|
Name | string |
None. |
|
Description | string |
None. |
|
DisplayOrder | integer |
None. |
|
AssetType | AssetType |
None. |
|
AssetGroup | AssetGroup |
None. |
|
ParentAsset | Asset |
None. |
|
Location | string |
None. |
|
Barcode | Barcode |
None. |
|
FormValueNeededDate | date |
None. |
|
MeasurementValueNeededDate | date |
None. |
|
HasChildren | boolean |
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:
{ "AssetId": "1124a121-41af-4855-97ee-7bbe6f1b84e6", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "dff77fd4-c284-48b2-ab4d-9d30335a1611", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "af1f2ca8-55c9-4b74-8211-ca5c24a0bd11", "CreateDate": "2024-12-09T02:58:53.7636172-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-09T02:58:53.7636172-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "38d35f3b-c7ad-42b6-bdbe-dc3466567d2f", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-09T02:58:53.77916-08:00", "MeasurementValueNeededDate": "2024-12-09T02:58:53.77916-08:00", "SourceSystemId": "sample string 3", "CompanyId": "583f47be-a28e-41e1-a6d5-9c8f14978470", "CreateDate": "2024-12-09T02:58:53.77916-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-09T02:58:53.77916-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-09T02:58:53.77916-08:00", "MeasurementValueNeededDate": "2024-12-09T02:58:53.77916-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "e9e8e36a-1f7c-41cb-835f-4c33872663cf", "CreateDate": "2024-12-09T02:58:53.77916-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-09T02:58:53.77916-08:00", "LastModifiedUser": "sample string 8" }
Response Information
Resource Description
On success, the created asset.
Name | Description | Type | Additional information |
---|---|---|---|
Data | Asset |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "AssetId": "57069d98-b043-44f6-abf9-282dbda49fbe", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "f5560ea3-0ee6-4663-9840-3cd2396442ff", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "745d6f8f-fab8-4f9a-9e1e-62baa58a7ad1", "CreateDate": "2024-12-09T02:58:53.77916-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-09T02:58:53.77916-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "0f20dbf0-9011-44fc-b7ce-3ee77926c0da", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-09T02:58:53.77916-08:00", "MeasurementValueNeededDate": "2024-12-09T02:58:53.77916-08:00", "SourceSystemId": "sample string 3", "CompanyId": "d9064bb3-56f4-4c1b-be36-3d37b2a3243c", "CreateDate": "2024-12-09T02:58:53.77916-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-09T02:58:53.77916-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-09T02:58:53.77916-08:00", "MeasurementValueNeededDate": "2024-12-09T02:58:53.77916-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "69c8a133-c013-467c-bd3f-d3440e4c7fdd", "CreateDate": "2024-12-09T02:58:53.77916-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-09T02:58:53.77916-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }