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": "23344c78-fe7c-4e7e-b62d-53b6d93613e3", "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": "73d5b5af-dfb6-4435-b159-9e5570854678", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "f207352b-8cc4-4396-bf40-ebb381e1dc9c", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "689922be-110d-4e5c-a5b0-9db2b582fba4", "CreateDate": "2025-01-02T11:35:20.8002468-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:35:20.8002468-08:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "183e396c-7b8e-4000-87e8-e2bdc0c1fc9b", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-01-02T11:35:20.8002468-08:00", "MeasurementValueNeededDate": "2025-01-02T11:35:20.8002468-08:00", "SourceSystemId": "sample string 3", "CompanyId": "530eb60f-12cf-4de2-907e-664b15367505", "CreateDate": "2025-01-02T11:35:20.8002468-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-02T11:35:20.8002468-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "72cb9abd-e21a-4295-824a-6d4091c2d162", "EffectiveDate": "2025-01-02T11:35:20.8002468-08:00", "StateType": { "StateTypeId": "c8c1ea72-0e55-44dd-b98f-25c5e1b07766", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "f207352b-8cc4-4396-bf40-ebb381e1dc9c", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "689922be-110d-4e5c-a5b0-9db2b582fba4", "CreateDate": "2025-01-02T11:35:20.8002468-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:35:20.8002468-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "7df6d521-5699-4e82-8afc-ebd930b327ce", "CreateDate": "2025-01-02T11:35:20.8002468-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-02T11:35:20.8002468-08:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "27280a05-9235-466e-a414-20272007dcd4", "CreateDate": "2025-01-02T11:35:20.8002468-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:35:20.8002468-08:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "55db6c3d-429b-4706-bdf4-563c855d8314", "EffectiveDate": "2025-01-02T11:35:20.8002468-08:00", "StatusType": { "StatusTypeId": "be62fd94-de2b-49f8-a9a6-1e64e920d4ca", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "f207352b-8cc4-4396-bf40-ebb381e1dc9c", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "689922be-110d-4e5c-a5b0-9db2b582fba4", "CreateDate": "2025-01-02T11:35:20.8002468-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:35:20.8002468-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "7144db4d-c2fc-43bd-872c-b664dd57b9b6", "CreateDate": "2025-01-02T11:35:20.8002468-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-02T11:35:20.8002468-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "9d1328b5-c80f-4aee-9e22-c1f5f36b4338", "CreateDate": "2025-01-02T11:35:20.8002468-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:35:20.8002468-08:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "80ef476a-5291-4f31-a86c-4de00f0ff2a4", "EffectiveDate": "2025-01-02T11:35:20.8002468-08:00", "WellPurposeType": { "WellPurposeTypeId": "2041769f-dc7b-46b9-beda-2ff8391bab66", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "c331858a-363f-44c5-a36f-4c5fd9704cc7", "CreateDate": "2025-01-02T11:35:20.8002468-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-02T11:35:20.8002468-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "f7a03c69-99ae-4322-a2ca-4b58ce84336a", "CreateDate": "2025-01-02T11:35:20.8002468-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:35:20.8002468-08:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-01-02T11:35:20.8002468-08:00", "MeasurementValueNeededDate": "2025-01-02T11:35:20.8002468-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "34533ea4-ca28-4a5e-9333-477ac02b28ac", "CreateDate": "2025-01-02T11:35:20.8002468-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:35:20.8002468-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }