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": "bfb3a7c2-636e-401e-9a53-d1973c8d63d4", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "e2cbda46-af1e-46d1-b3bd-d6503ce14da0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "effced64-031d-497c-8989-aed3c3f7aeb6", "CreateDate": "2024-10-10T15:20:53.8656224-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:20:53.8656224-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "9c1ef67d-9204-4e66-a63f-fa7f1892a8ae", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-10-10T15:20:53.8656224-07:00", "MeasurementValueNeededDate": "2024-10-10T15:20:53.8656224-07:00", "SourceSystemId": "sample string 3", "CompanyId": "291a0a68-a69a-47ef-bae4-3fe7cc2bd4d0", "CreateDate": "2024-10-10T15:20:53.8656224-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:20:53.8656224-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-10-10T15:20:53.8656224-07:00", "MeasurementValueNeededDate": "2024-10-10T15:20:53.8656224-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "2ddbed04-cf1f-48ed-aadb-93576662e5ba", "CreateDate": "2024-10-10T15:20:53.8656224-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-10-10T15:20:53.8656224-07: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": "48fdb52e-887d-4da0-ba09-d1fa8007ba8d", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "d5a47823-2655-49b5-8117-c09b26659973", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "e9768e0a-c386-4125-a87f-2ab7aede4dbf", "CreateDate": "2024-10-10T15:20:53.8656224-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:20:53.8656224-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "aa6c0f81-a15d-4da2-9261-692722adfd95", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-10-10T15:20:53.8656224-07:00", "MeasurementValueNeededDate": "2024-10-10T15:20:53.8656224-07:00", "SourceSystemId": "sample string 3", "CompanyId": "d0f37e1f-f977-406e-95e3-7ba2446f5b7f", "CreateDate": "2024-10-10T15:20:53.8656224-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:20:53.8656224-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-10-10T15:20:53.8656224-07:00", "MeasurementValueNeededDate": "2024-10-10T15:20:53.8656224-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "e8a53fbc-6e0f-4b65-99f1-5ac06a4cb364", "CreateDate": "2024-10-10T15:20:53.8656224-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-10-10T15:20:53.8656224-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }