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": "271a7d6e-e02a-40c8-96fe-634d7744d135", "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": "4f99f2cd-6ac5-41de-99dd-fa4fa9cecb8d", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "0bcdd989-cc52-4d25-a642-6c13eaddfadd", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "e67fac00-cf94-4651-a9d8-26775d41cc90", "CreateDate": "2025-08-29T17:13:55.4666032-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:13:55.4666032-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "72dd6aca-8523-4216-953e-f18999ce3caa", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-29T17:13:55.4666032-07:00", "MeasurementValueNeededDate": "2025-08-29T17:13:55.4666032-07:00", "SourceSystemId": "sample string 3", "CompanyId": "ff5d6f45-c909-4e49-8f36-a3771594e25e", "CreateDate": "2025-08-29T17:13:55.4666032-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:13:55.4666032-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "3302efc6-49eb-4cb6-a756-8fb0da4dc907", "EffectiveDate": "2025-08-29T17:13:55.4666032-07:00", "StateType": { "StateTypeId": "e62397ab-6e23-4c15-92f4-804e04165314", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "0bcdd989-cc52-4d25-a642-6c13eaddfadd", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "e67fac00-cf94-4651-a9d8-26775d41cc90", "CreateDate": "2025-08-29T17:13:55.4666032-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:13:55.4666032-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "73b70a9b-2680-4d4a-a75b-7c0693492f3a", "CreateDate": "2025-08-29T17:13:55.4666032-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:13:55.4666032-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "73c1ccc5-3921-42cf-8f47-bc94cb45e859", "CreateDate": "2025-08-29T17:13:55.4666032-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:13:55.4666032-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "3b73d62c-49a4-456c-99de-aa53d8db37d7", "EffectiveDate": "2025-08-29T17:13:55.4666032-07:00", "StatusType": { "StatusTypeId": "1a27fe39-a008-479c-a9a1-774fc7f3f8e7", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "0bcdd989-cc52-4d25-a642-6c13eaddfadd", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "e67fac00-cf94-4651-a9d8-26775d41cc90", "CreateDate": "2025-08-29T17:13:55.4666032-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:13:55.4666032-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "adc3d25a-1841-4dd6-8765-5a2b282d95c3", "CreateDate": "2025-08-29T17:13:55.4666032-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:13:55.4666032-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "fb9a6691-7103-41a0-a617-2a860d90a51d", "CreateDate": "2025-08-29T17:13:55.4666032-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:13:55.4666032-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "324cff95-8295-4d26-81d0-db74a7cd2156", "EffectiveDate": "2025-08-29T17:13:55.4666032-07:00", "WellPurposeType": { "WellPurposeTypeId": "29ecc499-2e44-47dc-9060-963550be7800", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "a4d7f877-af67-461d-bbb3-0e173a1abd09", "CreateDate": "2025-08-29T17:13:55.4666032-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:13:55.4666032-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "afeab469-4acf-4ee3-9792-bfa586b30512", "CreateDate": "2025-08-29T17:13:55.4666032-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:13:55.4666032-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-08-29T17:13:55.4666032-07:00", "MeasurementValueNeededDate": "2025-08-29T17:13:55.4666032-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "8e5f710a-a164-4866-91dd-32c08fc7c3d1", "CreateDate": "2025-08-29T17:13:55.4666032-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:13:55.4666032-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }