PUT Assets/UpdateBarcode

Updates the given asset's barcode.

Request Information

URI Parameters

None.

Body Parameters

Contains the AssetId and desired barcode

UpdateAssetBarcodeParameters
NameDescriptionTypeAdditional information
AssetId

globally unique identifier

None.

Barcode

Barcode

None.

Request Formats

application/json, text/json

Sample:
{
  "AssetId": "7fdfd43b-39ce-4f09-84a7-ddb4c2326e5b",
  "Barcode": {
    "Format": 0,
    "Code": "sample string 1"
  }
}

Response Information

Resource Description

On success, the updated asset.

NameDescriptionTypeAdditional information
Data

Asset

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "AssetId": "d6cf3ccb-aa6a-45bf-a735-2592041c0916",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "b89c3e41-5491-4317-9ae6-996ebd7d0cd8",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "b390e860-e5e4-4b21-a84d-5c7d9bc08650",
      "CreateDate": "2022-11-26T13:02:38.7532623-08:00",
      "CreateUser": "sample string 6",
      "LastModifiedDate": "2022-11-26T13:02:38.7532623-08:00",
      "LastModifiedUser": "sample string 7"
    },
    "AssetGroup": {
      "AssetGroupId": "a78ca4d4-c3c0-4f9c-ac09-3154779418e0",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2022-11-26T13:02:38.7532623-08:00",
      "MeasurementValueNeededDate": "2022-11-26T13:02:38.7532623-08:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "9a3b85ac-d9aa-4b96-8c65-067cc27eb5dd",
      "CreateDate": "2022-11-26T13:02:38.7532623-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2022-11-26T13:02:38.7532623-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "ParentAsset": null,
    "Location": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "FormValueNeededDate": "2022-11-26T13:02:38.7532623-08:00",
    "MeasurementValueNeededDate": "2022-11-26T13:02:38.7532623-08:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "06455b7b-1e94-40ec-9c98-96a7f2bbd264",
    "CreateDate": "2022-11-26T13:02:38.7532623-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2022-11-26T13:02:38.7532623-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "Total": 1,
  "Message": "sample string 1"
}