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": "5138bb1e-1bb8-4db7-a778-afabf19dc92d", "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": "8f229030-76c7-404d-a52d-cc8d3c3c8ce1", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "bc8d8b98-c29b-4807-8548-ff8db89139bc", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "fb5145c0-685e-46f3-9109-844959c5fedf", "CreateDate": "2025-05-09T15:29:41.1489516-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:29:41.1489516-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "fcd21a99-4d4b-4d4d-a579-b61dd938b4fc", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-09T15:29:41.1489516-07:00", "MeasurementValueNeededDate": "2025-05-09T15:29:41.1489516-07:00", "SourceSystemId": "sample string 3", "CompanyId": "c8bea0e0-76d8-4e8a-95e2-ba579455dc4f", "CreateDate": "2025-05-09T15:29:41.1489516-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-09T15:29:41.1489516-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "c73e04bd-a9a8-4077-9146-fc4d8d7908b3", "EffectiveDate": "2025-05-09T15:29:41.1489516-07:00", "StateType": { "StateTypeId": "f10c952b-04f0-452e-a5a7-ee1d6aa6e38e", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "bc8d8b98-c29b-4807-8548-ff8db89139bc", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "fb5145c0-685e-46f3-9109-844959c5fedf", "CreateDate": "2025-05-09T15:29:41.1489516-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:29:41.1489516-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "f5c104c0-fdc0-4018-8897-08e7ba7dd3e3", "CreateDate": "2025-05-09T15:29:41.1489516-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-09T15:29:41.1489516-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "6d1a4c04-817a-431f-afae-68068aa0ff0d", "CreateDate": "2025-05-09T15:29:41.1489516-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-09T15:29:41.1489516-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "b86ec069-77e3-4555-9bcf-2c81af20c33c", "EffectiveDate": "2025-05-09T15:29:41.1489516-07:00", "StatusType": { "StatusTypeId": "fd81f98d-3015-4947-bf5b-5844dd85458e", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "bc8d8b98-c29b-4807-8548-ff8db89139bc", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "fb5145c0-685e-46f3-9109-844959c5fedf", "CreateDate": "2025-05-09T15:29:41.1489516-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:29:41.1489516-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "41101202-daa5-486b-b037-69e1eec71f2b", "CreateDate": "2025-05-09T15:29:41.1489516-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T15:29:41.1489516-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "3b4f3ca7-3f55-4359-b8ed-04be2625750a", "CreateDate": "2025-05-09T15:29:41.1489516-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-09T15:29:41.1489516-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "3578358b-5000-4ab3-aed2-d4642bbcda67", "EffectiveDate": "2025-05-09T15:29:41.1489516-07:00", "WellPurposeType": { "WellPurposeTypeId": "38736d0e-84e2-44c1-aa4b-25d5481ec368", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "9741eae5-8f22-40e9-8f9e-929e0538f295", "CreateDate": "2025-05-09T15:29:41.1489516-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T15:29:41.1489516-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "2e609802-ee68-4a58-8169-5661f67519a8", "CreateDate": "2025-05-09T15:29:41.1489516-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-09T15:29:41.1489516-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-05-09T15:29:41.1489516-07:00", "MeasurementValueNeededDate": "2025-05-09T15:29:41.1489516-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "7aebb063-b31e-430f-abde-956b7fc0604f", "CreateDate": "2025-05-09T15:29:41.1489516-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:29:41.1489516-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }