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": "8e099ab5-1bd6-4933-9935-7ac1ef0db265", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "36019c68-5c9e-4fbf-bd91-71a7805cdeae", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "db9b8039-558e-49da-ad56-35357fa5699b", "CreateDate": "2024-12-22T03:04:05.6539126-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-22T03:04:05.6539126-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "bda17eea-51db-4d14-a53f-a4bfc1c71031", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-22T03:04:05.6539126-08:00", "MeasurementValueNeededDate": "2024-12-22T03:04:05.6539126-08:00", "SourceSystemId": "sample string 3", "CompanyId": "3ab7333e-cc06-49ba-b271-cc158a84c91c", "CreateDate": "2024-12-22T03:04:05.6539126-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-22T03:04:05.6539126-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-22T03:04:05.6539126-08:00", "MeasurementValueNeededDate": "2024-12-22T03:04:05.6539126-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "84941530-dfea-4b91-8f4d-30b4d8ccd763", "CreateDate": "2024-12-22T03:04:05.6539126-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-22T03:04:05.6539126-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": "9ae660e7-2390-4eac-b959-30e2a2532434", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "f79cc936-81c6-491f-8ee5-52a4631320d3", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "b4c744f8-3315-4976-8006-fc09909af3cd", "CreateDate": "2024-12-22T03:04:05.6539126-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-22T03:04:05.6539126-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "02d132ef-3101-4fd2-9ef0-5b51a7542c4c", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-22T03:04:05.6539126-08:00", "MeasurementValueNeededDate": "2024-12-22T03:04:05.6539126-08:00", "SourceSystemId": "sample string 3", "CompanyId": "89c6622e-e5e6-43d0-af13-adb1643b6aa1", "CreateDate": "2024-12-22T03:04:05.6539126-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-22T03:04:05.6539126-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-22T03:04:05.6539126-08:00", "MeasurementValueNeededDate": "2024-12-22T03:04:05.6539126-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "d67ced90-6596-468b-b370-07fe1264c5ed", "CreateDate": "2024-12-22T03:04:05.6539126-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-22T03:04:05.6539126-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }