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": "d8cc35e3-8009-46b0-9848-646dd0b2348f", "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": "4a658d3b-fd39-400e-8f6e-85361b29b085", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "824acc9a-60c1-40d5-b354-b0e34e864893", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4e999bb7-81a7-4c3d-820b-9934b106f010", "CreateDate": "2025-05-08T23:59:54.7289719-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T23:59:54.7289719-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "ffc89e0d-2b39-4e3f-ae40-edd99420506c", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-08T23:59:54.7289719-07:00", "MeasurementValueNeededDate": "2025-05-08T23:59:54.7289719-07:00", "SourceSystemId": "sample string 3", "CompanyId": "670d1a65-5145-415b-82b8-46b65d1a1b03", "CreateDate": "2025-05-08T23:59:54.7289719-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T23:59:54.7289719-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "121b9382-b353-4593-a10c-cc03f84f2858", "EffectiveDate": "2025-05-08T23:59:54.7289719-07:00", "StateType": { "StateTypeId": "d0641a95-af64-4d8e-bb58-8b50b03aab6c", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "824acc9a-60c1-40d5-b354-b0e34e864893", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4e999bb7-81a7-4c3d-820b-9934b106f010", "CreateDate": "2025-05-08T23:59:54.7289719-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T23:59:54.7289719-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "ed80acff-42ee-4c6a-9cc4-bd0f0eb9bfd2", "CreateDate": "2025-05-08T23:59:54.7289719-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T23:59:54.7289719-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "782d8668-bbcf-48f3-9538-62eefb6fc428", "CreateDate": "2025-05-08T23:59:54.7289719-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T23:59:54.7289719-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "2b1f72df-a76a-45d1-97be-7f478ad6ecfe", "EffectiveDate": "2025-05-08T23:59:54.7289719-07:00", "StatusType": { "StatusTypeId": "49fc94d9-25a3-4476-b99c-03835ec85684", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "824acc9a-60c1-40d5-b354-b0e34e864893", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4e999bb7-81a7-4c3d-820b-9934b106f010", "CreateDate": "2025-05-08T23:59:54.7289719-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T23:59:54.7289719-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "4859b4b5-3f2e-4044-bd00-311dde9c464a", "CreateDate": "2025-05-08T23:59:54.7289719-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T23:59:54.7289719-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "f6010961-cfc1-40f8-9baf-a61165c17b3a", "CreateDate": "2025-05-08T23:59:54.7289719-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T23:59:54.7289719-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "3cae2fc4-a37b-467e-849d-f7a65c7b2bc9", "EffectiveDate": "2025-05-08T23:59:54.7289719-07:00", "WellPurposeType": { "WellPurposeTypeId": "14598209-859b-4bef-8e8d-201bfd189ad2", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "9ecc1a8f-c941-4266-84a3-b57205830dac", "CreateDate": "2025-05-08T23:59:54.7289719-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T23:59:54.7289719-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "19d5db3e-7aa7-42dd-9f10-e1ae1b997eb1", "CreateDate": "2025-05-08T23:59:54.7289719-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T23:59:54.7289719-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-05-08T23:59:54.7289719-07:00", "MeasurementValueNeededDate": "2025-05-08T23:59:54.7289719-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "52b3a5f1-1c36-43fd-95a6-e04170fa3535", "CreateDate": "2025-05-08T23:59:54.7289719-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T23:59:54.7289719-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }