PUT Assets/UpdateBarcode
Updates the given asset's barcode.
Request Information
URI Parameters
None.
Body Parameters
Contains the AssetId and desired barcode
UpdateAssetBarcodeParametersName | Description | Type | Additional information |
---|---|---|---|
AssetId | globally unique identifier |
None. |
|
Barcode | Barcode |
None. |
Request Formats
application/json, text/json
Sample:
{ "AssetId": "8c0e189d-bff8-4db9-8b15-dde6bd90986f", "Barcode": { "Format": 0, "Code": "sample string 1" } }
Response Information
Resource Description
On success, the updated asset.
Name | Description | Type | Additional information |
---|---|---|---|
Data | Asset |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "AssetId": "da3f8c6f-670f-4498-9ec8-688775d01224", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "6391a2e0-c77b-4991-984a-3db2f2772f5f", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "3c0578fe-0448-449c-88a8-cfea5dd5aa56", "CreateDate": "2025-04-17T04:07:08.1889083-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-17T04:07:08.1889083-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "f9015df7-15fa-48ab-89fd-53ab0142bfd9", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-04-17T04:07:08.1889083-07:00", "MeasurementValueNeededDate": "2025-04-17T04:07:08.1889083-07:00", "SourceSystemId": "sample string 3", "CompanyId": "9daf4549-ca48-4564-9684-faf1664eb807", "CreateDate": "2025-04-17T04:07:08.1889083-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T04:07:08.1889083-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "34adfe4c-17ab-4cee-8183-421097702bd3", "EffectiveDate": "2025-04-17T04:07:08.1889083-07:00", "StateType": { "StateTypeId": "1793ffa7-9310-4746-be60-f3ecd3901ad4", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "6391a2e0-c77b-4991-984a-3db2f2772f5f", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "3c0578fe-0448-449c-88a8-cfea5dd5aa56", "CreateDate": "2025-04-17T04:07:08.1889083-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-17T04:07:08.1889083-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "518e9aac-50b1-498e-8ed7-2b747d1702f6", "CreateDate": "2025-04-17T04:07:08.1889083-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T04:07:08.1889083-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "d3729e14-a37c-4cc6-aa0a-5310dbc0ec3f", "CreateDate": "2025-04-17T04:07:08.1889083-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-04-17T04:07:08.1889083-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "4d4a1b23-8ada-4188-969b-041d4da41641", "EffectiveDate": "2025-04-17T04:07:08.1889083-07:00", "StatusType": { "StatusTypeId": "ad884b82-44c5-48b0-8e3e-6d0cef60a1e2", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "6391a2e0-c77b-4991-984a-3db2f2772f5f", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "3c0578fe-0448-449c-88a8-cfea5dd5aa56", "CreateDate": "2025-04-17T04:07:08.1889083-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-17T04:07:08.1889083-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "69ab62de-0cc0-4590-b4f5-1ac84fbd1e5a", "CreateDate": "2025-04-17T04:07:08.1889083-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-17T04:07:08.1889083-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "c13a982a-6500-4715-a42e-e97725c7b31c", "CreateDate": "2025-04-17T04:07:08.1889083-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-04-17T04:07:08.1889083-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "ccd89766-54f6-4f5d-b9b5-fe523b2e824c", "EffectiveDate": "2025-04-17T04:07:08.1889083-07:00", "WellPurposeType": { "WellPurposeTypeId": "b9a1a738-8a60-4d17-a7b9-148e1d8d010f", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "66fc7fac-1f11-4fdd-a8cf-ad3ec205cf17", "CreateDate": "2025-04-17T04:07:08.1889083-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-17T04:07:08.1889083-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "d4bfdc0d-0939-434c-bc00-fb99c8998ed4", "CreateDate": "2025-04-17T04:07:08.1889083-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-04-17T04:07:08.1889083-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-04-17T04:07:08.1889083-07:00", "MeasurementValueNeededDate": "2025-04-17T04:07:08.1889083-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "e70d5c51-b8c0-47e1-bf38-7193ff4ebeea", "CreateDate": "2025-04-17T04:07:08.1889083-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-17T04:07:08.1889083-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }