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": "567fbf7c-2d4a-49f0-b14b-2a4324ede122", "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": "1567f717-cbf3-44bb-bf23-5a19f2376f33", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "b769a3d9-c2ef-45a6-b81d-b573aade50e4", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7ac6ebd6-126e-4897-a268-8267d33697bd", "CreateDate": "2024-04-28T23:46:37.0204218-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T23:46:37.0204218-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "1e87aee4-54dd-4ec9-aa8c-2fd56b8ff033", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-04-28T23:46:37.0204218-07:00", "MeasurementValueNeededDate": "2024-04-28T23:46:37.0204218-07:00", "SourceSystemId": "sample string 3", "CompanyId": "799eb5a8-7451-4ea6-a9af-1e6a8d26bb5a", "CreateDate": "2024-04-28T23:46:37.0204218-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-28T23:46:37.0204218-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "44fc6983-d085-46ac-9b96-8a3fc054a64b", "EffectiveDate": "2024-04-28T23:46:37.0204218-07:00", "StateType": { "StateTypeId": "5d820b82-dbce-4043-859a-9ba8642a16f3", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "b769a3d9-c2ef-45a6-b81d-b573aade50e4", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7ac6ebd6-126e-4897-a268-8267d33697bd", "CreateDate": "2024-04-28T23:46:37.0204218-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T23:46:37.0204218-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "262f698c-f264-4f79-b0b1-d6bb8ff79842", "CreateDate": "2024-04-28T23:46:37.0204218-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-28T23:46:37.0204218-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "26854414-9448-4740-a481-f959fec6f039", "CreateDate": "2024-04-28T23:46:37.0204218-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-04-28T23:46:37.0204218-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "440b78c5-8c39-4bc8-ba59-21f08ff562b0", "EffectiveDate": "2024-04-28T23:46:37.0204218-07:00", "StatusType": { "StatusTypeId": "7eb4b1c8-ffb5-4db2-8c2e-dcf7962e619a", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "b769a3d9-c2ef-45a6-b81d-b573aade50e4", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7ac6ebd6-126e-4897-a268-8267d33697bd", "CreateDate": "2024-04-28T23:46:37.0204218-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T23:46:37.0204218-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "3c206903-209a-4145-8cdf-de486343d521", "CreateDate": "2024-04-28T23:46:37.0204218-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-28T23:46:37.0204218-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "dd2451ea-d6de-4e22-9f12-2a625e7b88d8", "CreateDate": "2024-04-28T23:46:37.0204218-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-04-28T23:46:37.0204218-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "1b388a5b-af9d-4329-bf53-2cba4bb89faa", "EffectiveDate": "2024-04-28T23:46:37.0204218-07:00", "WellPurposeType": { "WellPurposeTypeId": "438a96b9-c103-4987-856b-8ca66ba1f0e4", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "0d0d3b5e-b6f3-4783-9764-baa9a05a5d3c", "CreateDate": "2024-04-28T23:46:37.0204218-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-28T23:46:37.0204218-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "dc8df37d-861b-4da3-9812-2ccb7d93c592", "CreateDate": "2024-04-28T23:46:37.0204218-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-04-28T23:46:37.0204218-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2024-04-28T23:46:37.0204218-07:00", "MeasurementValueNeededDate": "2024-04-28T23:46:37.0204218-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "871d3014-eb78-469c-b401-3dbb87032cbd", "CreateDate": "2024-04-28T23:46:37.0204218-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T23:46:37.0204218-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }