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": "7d2b227c-3646-40d2-bb1a-aed999f1d4dc", "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": "eaad6d46-62df-4cf9-b547-0cd5c0fa6314", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "77bd5303-2aff-4d9a-bd00-910c03870672", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "b4e550f9-46a8-4236-8fff-c10fbd9d3026", "CreateDate": "2024-11-22T21:36:56.3266501-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-22T21:36:56.3266501-08:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "13b25c07-5a68-4404-991d-aee1ce65a162", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-11-22T21:36:56.3266501-08:00", "MeasurementValueNeededDate": "2024-11-22T21:36:56.3266501-08:00", "SourceSystemId": "sample string 3", "CompanyId": "089da12e-f684-47a6-9697-d0e372246da8", "CreateDate": "2024-11-22T21:36:56.3266501-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-22T21:36:56.3266501-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "2158f051-85c6-4978-b8a9-1564bc0d21d3", "EffectiveDate": "2024-11-22T21:36:56.3266501-08:00", "StateType": { "StateTypeId": "5c06f338-8045-442b-b69a-be26e7342b0a", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "77bd5303-2aff-4d9a-bd00-910c03870672", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "b4e550f9-46a8-4236-8fff-c10fbd9d3026", "CreateDate": "2024-11-22T21:36:56.3266501-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-22T21:36:56.3266501-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "c34957af-3d14-43cb-a06f-1f6bed5725e7", "CreateDate": "2024-11-22T21:36:56.3266501-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-22T21:36:56.3266501-08:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "5a85c83a-a31c-4705-b589-3e55b51f0333", "CreateDate": "2024-11-22T21:36:56.3266501-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-11-22T21:36:56.3266501-08:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "6a01510b-9093-4616-a682-9dd4d792d83e", "EffectiveDate": "2024-11-22T21:36:56.3266501-08:00", "StatusType": { "StatusTypeId": "13e22793-b204-48c1-ae26-d1d64d81a6d1", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "77bd5303-2aff-4d9a-bd00-910c03870672", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "b4e550f9-46a8-4236-8fff-c10fbd9d3026", "CreateDate": "2024-11-22T21:36:56.3266501-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-22T21:36:56.3266501-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "8d2cba03-e9bd-4f58-aaa4-48fae2ce1370", "CreateDate": "2024-11-22T21:36:56.3266501-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-22T21:36:56.3266501-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "08883b67-1c8a-4ca1-96d6-dce3b240f989", "CreateDate": "2024-11-22T21:36:56.3266501-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-11-22T21:36:56.3266501-08:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "80737505-22ac-4b2c-8a0d-1a5c9e18ec4a", "EffectiveDate": "2024-11-22T21:36:56.3266501-08:00", "WellPurposeType": { "WellPurposeTypeId": "16f382ec-14f4-4d05-bdd4-58a9834c6f57", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "4ca0e703-6880-499b-a641-8ca0ac0de3e5", "CreateDate": "2024-11-22T21:36:56.3266501-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-22T21:36:56.3266501-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "60029ec4-0176-419e-8c71-50cf64596646", "CreateDate": "2024-11-22T21:36:56.3266501-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-11-22T21:36:56.3266501-08:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2024-11-22T21:36:56.3266501-08:00", "MeasurementValueNeededDate": "2024-11-22T21:36:56.3266501-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "95026baa-e8df-4057-a195-aeb7295f6c4f", "CreateDate": "2024-11-22T21:36:56.3266501-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-22T21:36:56.3266501-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }