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": "cdb9bda7-cc5c-49c7-8059-d572bf5098ec", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "5f1841d2-b51d-43e8-9b68-510bc565bc60", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "20941010-243a-4e1c-aa82-c6a873dfe999", "CreateDate": "2024-11-21T05:21:22.0574127-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T05:21:22.0574127-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "8adb4faa-0e61-4bbc-aa4f-c0282100e5db", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-11-21T05:21:22.0574127-08:00", "MeasurementValueNeededDate": "2024-11-21T05:21:22.0574127-08:00", "SourceSystemId": "sample string 3", "CompanyId": "e162c213-2d98-4fc0-a7da-bcf4da53ba58", "CreateDate": "2024-11-21T05:21:22.0574127-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T05:21:22.0574127-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-11-21T05:21:22.0574127-08:00", "MeasurementValueNeededDate": "2024-11-21T05:21:22.0574127-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "13d984c3-f7f4-4cfd-b6fd-20bc3cd94a6d", "CreateDate": "2024-11-21T05:21:22.0574127-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T05:21:22.0574127-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": "30e4ed88-4fad-4792-b249-88864f4c1433", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "49ecad79-fc33-4eca-818f-e3e9ff6470a8", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "0fa74506-a966-4b1d-b8f9-cefa66d7bcf0", "CreateDate": "2024-11-21T05:21:22.0574127-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T05:21:22.0574127-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "8ea7e30e-be2e-43a2-ac1d-775964dcd45a", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-11-21T05:21:22.0574127-08:00", "MeasurementValueNeededDate": "2024-11-21T05:21:22.0574127-08:00", "SourceSystemId": "sample string 3", "CompanyId": "ccc9cc56-0157-4856-8ed9-6c158a6cf7f0", "CreateDate": "2024-11-21T05:21:22.0574127-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T05:21:22.0574127-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-11-21T05:21:22.0574127-08:00", "MeasurementValueNeededDate": "2024-11-21T05:21:22.0574127-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "da54cbe1-fead-4d93-a0bf-dfe3bed91e63", "CreateDate": "2024-11-21T05:21:22.0574127-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T05:21:22.0574127-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }