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": "95ad4549-6912-4376-a575-3f5d0e7e6300",
  "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": "6749233d-0ef1-4953-8c35-189176e624a4",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "2c6ab02f-159b-47cd-80c4-ec41121b6ccb",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "IsWell": true,
      "DisplayColor": "sample string 4",
      "SourceSystemId": "sample string 5",
      "CompanyId": "a0f4c3e4-8e36-48cf-8381-b5e1419aa4db",
      "CreateDate": "2024-03-27T20:24:00.0424148-07:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-03-27T20:24:00.0424148-07:00",
      "LastModifiedUser": "sample string 8"
    },
    "AssetGroup": {
      "AssetGroupId": "e7ed4390-37c6-4401-bfac-6a015eab5b89",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2024-03-27T20:24:00.0424148-07:00",
      "MeasurementValueNeededDate": "2024-03-27T20:24:00.0424148-07:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "b86f16b4-18fa-4b60-b4f5-565c04b93230",
      "CreateDate": "2024-03-27T20:24:00.0424148-07:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-03-27T20:24:00.0424148-07:00",
      "LastModifiedUser": "sample string 6"
    },
    "ParentAsset": null,
    "Location": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "State": {
      "StateId": "695c8e37-e372-4a59-a221-afa5ffb75c98",
      "EffectiveDate": "2024-03-27T20:24:00.0424148-07:00",
      "StateType": {
        "StateTypeId": "167219e9-0e78-46c6-a7f3-a8b621bbc872",
        "Name": "sample string 1",
        "IsOperational": true,
        "AssetType": {
          "AssetTypeId": "2c6ab02f-159b-47cd-80c4-ec41121b6ccb",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "IsWell": true,
          "DisplayColor": "sample string 4",
          "SourceSystemId": "sample string 5",
          "CompanyId": "a0f4c3e4-8e36-48cf-8381-b5e1419aa4db",
          "CreateDate": "2024-03-27T20:24:00.0424148-07:00",
          "CreateUser": "sample string 7",
          "LastModifiedDate": "2024-03-27T20:24:00.0424148-07:00",
          "LastModifiedUser": "sample string 8"
        },
        "SourceSystemId": "sample string 3",
        "CompanyId": "7a7416fd-de51-41d3-8849-b680253a36fb",
        "CreateDate": "2024-03-27T20:24:00.0424148-07:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-03-27T20:24:00.0424148-07:00",
        "LastModifiedUser": "sample string 6"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "04621257-f9bc-4a89-9e05-236579c7c14d",
      "CreateDate": "2024-03-27T20:24:00.0424148-07:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-03-27T20:24:00.0424148-07:00",
      "LastModifiedUser": "sample string 4"
    },
    "Status": {
      "StatusId": "43da61f7-5bad-4e45-8ec3-ebd1072ed59d",
      "EffectiveDate": "2024-03-27T20:24:00.0424148-07:00",
      "StatusType": {
        "StatusTypeId": "2d56c6ee-57a3-44f5-9d57-08ff5d1f07e1",
        "Name": "sample string 1",
        "IsProducing": true,
        "IsInjecting": true,
        "AssetType": {
          "AssetTypeId": "2c6ab02f-159b-47cd-80c4-ec41121b6ccb",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "IsWell": true,
          "DisplayColor": "sample string 4",
          "SourceSystemId": "sample string 5",
          "CompanyId": "a0f4c3e4-8e36-48cf-8381-b5e1419aa4db",
          "CreateDate": "2024-03-27T20:24:00.0424148-07:00",
          "CreateUser": "sample string 7",
          "LastModifiedDate": "2024-03-27T20:24:00.0424148-07:00",
          "LastModifiedUser": "sample string 8"
        },
        "SourceSystemId": "sample string 4",
        "CompanyId": "c71ab03c-a30b-48f7-afce-5a0475280936",
        "CreateDate": "2024-03-27T20:24:00.0424148-07:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-03-27T20:24:00.0424148-07:00",
        "LastModifiedUser": "sample string 7"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "31659305-92db-4785-960c-5b4aaf021c70",
      "CreateDate": "2024-03-27T20:24:00.0424148-07:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-03-27T20:24:00.0424148-07:00",
      "LastModifiedUser": "sample string 4"
    },
    "WellPurpose": {
      "WellPurposeId": "f403c394-6f81-4b9c-a00c-a4832006dd69",
      "EffectiveDate": "2024-03-27T20:24:00.0424148-07:00",
      "WellPurposeType": {
        "WellPurposeTypeId": "89f2ae7b-7123-4325-9a7b-94579ebcadfe",
        "IsProducer": true,
        "IsInjector": true,
        "Name": "sample string 3",
        "SourceSystemId": "sample string 4",
        "CompanyId": "95d21883-25f9-4002-9fac-724f2985e372",
        "CreateDate": "2024-03-27T20:24:00.0424148-07:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-03-27T20:24:00.0424148-07:00",
        "LastModifiedUser": "sample string 7"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "11b5694e-0cd2-43fe-8301-d71aae9a22c4",
      "CreateDate": "2024-03-27T20:24:00.0424148-07:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-03-27T20:24:00.0424148-07:00",
      "LastModifiedUser": "sample string 4"
    },
    "FormValueNeededDate": "2024-03-27T20:24:00.0424148-07:00",
    "MeasurementValueNeededDate": "2024-03-27T20:24:00.0424148-07:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "1b2da146-ac67-4762-a400-4dc8ed1e9d32",
    "CreateDate": "2024-03-27T20:24:00.0424148-07:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-03-27T20:24:00.0424148-07:00",
    "LastModifiedUser": "sample string 8"
  },
  "Total": 1,
  "Message": "sample string 1"
}