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": "0154796b-f91d-4380-9ba1-b69dbb2190f0", "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": "d538cb72-b63b-4331-8d08-3ab229205050", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "240fe956-2683-42ae-abaa-aebc55ec6875", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4ae1cf58-a72e-4f4c-b490-d4431e7d97f1", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "d907ff74-3245-44b0-9c38-b2df22b9f79d", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-02T14:50:10.5578496-07:00", "MeasurementValueNeededDate": "2025-06-02T14:50:10.5578496-07:00", "SourceSystemId": "sample string 3", "CompanyId": "a1c920a9-f749-4cf8-af90-e447d093379e", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "e5b966dd-bbff-4804-9c0b-7379cb58a500", "EffectiveDate": "2025-06-02T14:50:10.5578496-07:00", "StateType": { "StateTypeId": "a393ff97-90ab-4478-af90-986caa9b46e0", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "240fe956-2683-42ae-abaa-aebc55ec6875", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4ae1cf58-a72e-4f4c-b490-d4431e7d97f1", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "e92492c0-cc06-4dd0-9142-efac0144b407", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "1844ab31-5dd6-4541-862e-a1862d7a12f6", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "a60781de-adde-4a87-a7d0-afee1fc9dd63", "EffectiveDate": "2025-06-02T14:50:10.5578496-07:00", "StatusType": { "StatusTypeId": "08e2926d-f289-46bf-aff4-8502acfde838", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "240fe956-2683-42ae-abaa-aebc55ec6875", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4ae1cf58-a72e-4f4c-b490-d4431e7d97f1", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "5fa7ca98-de24-498a-8c6c-c09c7aa55a59", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "f4200e1a-4b20-4d40-b62b-cf89ba71f380", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "0d78dfb2-be7c-4e14-812a-449fb4c4d3ce", "EffectiveDate": "2025-06-02T14:50:10.5578496-07:00", "WellPurposeType": { "WellPurposeTypeId": "2c7abd19-6204-42d5-8a41-7ea943a763cf", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "5b23e39a-06eb-4f4b-b7a3-b7d6ebd26d0a", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "cb602f98-cb1b-4863-8d2e-f2fcfbc946b1", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-06-02T14:50:10.5578496-07:00", "MeasurementValueNeededDate": "2025-06-02T14:50:10.5578496-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "79db6092-1e31-411b-b006-2d4f2343f28c", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }