PUT Assets/UpdateLocation

Updates the given asset's location.

Request Information

URI Parameters

None.

Body Parameters

Contains the AssetId and desired location in Well-Known Text format

UpdateAssetLocationParameters
NameDescriptionTypeAdditional information
AssetId

globally unique identifier

None.

Location

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AssetId": "eb33997c-7c19-439a-898e-31873f9fff0b",
  "Location": "sample string 2"
}

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": "9bb730ea-d890-4405-99f9-458c5c1bd13d",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "688dd47b-488c-465a-aeee-6562eff13a87",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "IsWell": true,
      "DisplayColor": "sample string 4",
      "SourceSystemId": "sample string 5",
      "CompanyId": "eda3549f-a359-4c4f-a2b6-46ebae80f397",
      "CreateDate": "2024-11-21T04:40:06.7494028-08:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-11-21T04:40:06.7494028-08:00",
      "LastModifiedUser": "sample string 8"
    },
    "AssetGroup": {
      "AssetGroupId": "b00bd2f9-5f77-418e-bdbf-e2396bd9f60b",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2024-11-21T04:40:06.7494028-08:00",
      "MeasurementValueNeededDate": "2024-11-21T04:40:06.7494028-08:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "1482486b-071d-45ee-94ef-91aafa664844",
      "CreateDate": "2024-11-21T04:40:06.7494028-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-21T04:40:06.7494028-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "ParentAsset": null,
    "Location": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "State": {
      "StateId": "920e75f1-3be3-4de9-ba15-08b5b5ab66cf",
      "EffectiveDate": "2024-11-21T04:40:06.7494028-08:00",
      "StateType": {
        "StateTypeId": "826a15e1-61fe-49c6-adab-964e4b151c94",
        "Name": "sample string 1",
        "IsOperational": true,
        "AssetType": {
          "AssetTypeId": "688dd47b-488c-465a-aeee-6562eff13a87",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "IsWell": true,
          "DisplayColor": "sample string 4",
          "SourceSystemId": "sample string 5",
          "CompanyId": "eda3549f-a359-4c4f-a2b6-46ebae80f397",
          "CreateDate": "2024-11-21T04:40:06.7494028-08:00",
          "CreateUser": "sample string 7",
          "LastModifiedDate": "2024-11-21T04:40:06.7494028-08:00",
          "LastModifiedUser": "sample string 8"
        },
        "SourceSystemId": "sample string 3",
        "CompanyId": "cdb9c785-553b-4e35-bb53-d9f85f3bacf8",
        "CreateDate": "2024-11-21T04:40:06.7494028-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-21T04:40:06.7494028-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "19887c47-d5ec-4718-99b8-5ed86d9ea707",
      "CreateDate": "2024-11-21T04:40:06.7494028-08:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-11-21T04:40:06.7494028-08:00",
      "LastModifiedUser": "sample string 4"
    },
    "Status": {
      "StatusId": "30d87297-34d0-45ec-9fd3-1460ac836372",
      "EffectiveDate": "2024-11-21T04:40:06.7494028-08:00",
      "StatusType": {
        "StatusTypeId": "1b5f9bde-d3c4-411e-9996-5fd2e4d09183",
        "Name": "sample string 1",
        "IsProducing": true,
        "IsInjecting": true,
        "AssetType": {
          "AssetTypeId": "688dd47b-488c-465a-aeee-6562eff13a87",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "IsWell": true,
          "DisplayColor": "sample string 4",
          "SourceSystemId": "sample string 5",
          "CompanyId": "eda3549f-a359-4c4f-a2b6-46ebae80f397",
          "CreateDate": "2024-11-21T04:40:06.7494028-08:00",
          "CreateUser": "sample string 7",
          "LastModifiedDate": "2024-11-21T04:40:06.7494028-08:00",
          "LastModifiedUser": "sample string 8"
        },
        "SourceSystemId": "sample string 4",
        "CompanyId": "1507505b-217d-4c8e-a8e7-b79bdab39dfe",
        "CreateDate": "2024-11-21T04:40:06.7494028-08:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-11-21T04:40:06.7494028-08:00",
        "LastModifiedUser": "sample string 7"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "1b7bfc5c-d61f-49eb-97a2-fda746ab1634",
      "CreateDate": "2024-11-21T04:40:06.7494028-08:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-11-21T04:40:06.7494028-08:00",
      "LastModifiedUser": "sample string 4"
    },
    "WellPurpose": {
      "WellPurposeId": "3d63bd66-2d7e-449a-91a5-a4704f9d16dd",
      "EffectiveDate": "2024-11-21T04:40:06.7494028-08:00",
      "WellPurposeType": {
        "WellPurposeTypeId": "b2ef5481-0936-4542-b5ec-a45d0cbaad23",
        "IsProducer": true,
        "IsInjector": true,
        "Name": "sample string 3",
        "SourceSystemId": "sample string 4",
        "CompanyId": "818c3a9c-9893-4d02-a8d8-d056106b7fb2",
        "CreateDate": "2024-11-21T04:40:06.7494028-08:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-11-21T04:40:06.7494028-08:00",
        "LastModifiedUser": "sample string 7"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "2da8d7f4-cc8d-4d11-9f37-e6e4d33793fc",
      "CreateDate": "2024-11-21T04:40:06.7494028-08:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-11-21T04:40:06.7494028-08:00",
      "LastModifiedUser": "sample string 4"
    },
    "FormValueNeededDate": "2024-11-21T04:40:06.7494028-08:00",
    "MeasurementValueNeededDate": "2024-11-21T04:40:06.7494028-08:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "b3065079-4200-4e25-a478-38b6dd25fd72",
    "CreateDate": "2024-11-21T04:40:06.7494028-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-11-21T04:40:06.7494028-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "Total": 1,
  "Message": "sample string 1"
}