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": "db969a6c-0d14-443a-9d14-8266b4a007e7", "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": "8b28eac4-adcf-46d0-b5ab-6e7d3b760032", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "a2ea9eed-415b-435f-aa5f-59f6746bbd54", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4d786a56-a96d-4bf5-af0c-d3aa98ed9e9b", "CreateDate": "2025-03-09T08:19:32.9812712-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:19:32.9812712-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "bafa119c-3aca-4755-a9df-d71ecb653f04", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-03-09T08:19:32.9812712-07:00", "MeasurementValueNeededDate": "2025-03-09T08:19:32.9812712-07:00", "SourceSystemId": "sample string 3", "CompanyId": "2454339e-898b-4115-831a-9c48a4e5ccaf", "CreateDate": "2025-03-09T08:19:32.9812712-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:19:32.9812712-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "e56251ef-87b0-4987-900f-18fdfeae985a", "EffectiveDate": "2025-03-09T08:19:32.9812712-07:00", "StateType": { "StateTypeId": "197ab66c-63b6-4b0d-a60b-5554ca9a1232", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "a2ea9eed-415b-435f-aa5f-59f6746bbd54", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4d786a56-a96d-4bf5-af0c-d3aa98ed9e9b", "CreateDate": "2025-03-09T08:19:32.9812712-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:19:32.9812712-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "26008329-3bac-4575-b047-ac87a9cdef5a", "CreateDate": "2025-03-09T08:19:32.9812712-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:19:32.9812712-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "0016c123-5fbc-4300-a41b-ff34c2f19c01", "CreateDate": "2025-03-09T08:19:32.9812712-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:19:32.9812712-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "2abd476e-6724-4cc9-9a60-ba67585cafe3", "EffectiveDate": "2025-03-09T08:19:32.9812712-07:00", "StatusType": { "StatusTypeId": "577df566-a361-41d4-a986-a4a5bf5fff09", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "a2ea9eed-415b-435f-aa5f-59f6746bbd54", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4d786a56-a96d-4bf5-af0c-d3aa98ed9e9b", "CreateDate": "2025-03-09T08:19:32.9812712-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:19:32.9812712-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "b4ebb0e2-d8df-4378-9c29-244987873784", "CreateDate": "2025-03-09T08:19:32.9812712-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T08:19:32.9812712-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "f42e3002-9cda-46ba-bc0c-658251257caf", "CreateDate": "2025-03-09T08:19:32.9812712-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:19:32.9812712-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "ddf53965-73f5-4813-8139-ed5b5e4370c0", "EffectiveDate": "2025-03-09T08:19:32.9812712-07:00", "WellPurposeType": { "WellPurposeTypeId": "a25869b2-5e9f-4580-9745-888bd9165b4a", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "6f61c698-ce52-4b65-9476-9e48c00d62c5", "CreateDate": "2025-03-09T08:19:32.9812712-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T08:19:32.9812712-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "592e5fe2-943d-4c75-b53e-39b991d5e813", "CreateDate": "2025-03-09T08:19:32.9812712-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:19:32.9812712-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-03-09T08:19:32.9812712-07:00", "MeasurementValueNeededDate": "2025-03-09T08:19:32.9812712-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "39bcca34-27b0-425b-8d63-96df1501d673", "CreateDate": "2025-03-09T08:19:32.9812712-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:19:32.9812712-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }