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": "ffe535d7-fb8d-41c6-9fc0-a5ef7db56d21",
  "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": "ebaa3237-b3f8-4c58-9cb3-c53dcd83d1e9",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "9621f2f8-12b3-42e2-a041-26e8dd691ddb",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "IsWell": true,
      "DisplayColor": "sample string 4",
      "SourceSystemId": "sample string 5",
      "CompanyId": "f19ffd04-7488-4f6a-a2b1-39b350a4983b",
      "CreateDate": "2024-04-28T18:31:25.103245-07:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-04-28T18:31:25.103245-07:00",
      "LastModifiedUser": "sample string 8"
    },
    "AssetGroup": {
      "AssetGroupId": "439db1ec-a26c-4330-b54b-98ec533eff7d",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2024-04-28T18:31:25.103245-07:00",
      "MeasurementValueNeededDate": "2024-04-28T18:31:25.103245-07:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "110cea0f-cee1-4f8e-b4e6-bab93d9d8a81",
      "CreateDate": "2024-04-28T18:31:25.103245-07:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-04-28T18:31:25.103245-07:00",
      "LastModifiedUser": "sample string 6"
    },
    "ParentAsset": null,
    "Location": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "State": {
      "StateId": "35dc2492-493b-4db8-b0a1-ca67b4ed0424",
      "EffectiveDate": "2024-04-28T18:31:25.103245-07:00",
      "StateType": {
        "StateTypeId": "4e63a9d3-6712-412d-8987-7ec846165acb",
        "Name": "sample string 1",
        "IsOperational": true,
        "AssetType": {
          "AssetTypeId": "9621f2f8-12b3-42e2-a041-26e8dd691ddb",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "IsWell": true,
          "DisplayColor": "sample string 4",
          "SourceSystemId": "sample string 5",
          "CompanyId": "f19ffd04-7488-4f6a-a2b1-39b350a4983b",
          "CreateDate": "2024-04-28T18:31:25.103245-07:00",
          "CreateUser": "sample string 7",
          "LastModifiedDate": "2024-04-28T18:31:25.103245-07:00",
          "LastModifiedUser": "sample string 8"
        },
        "SourceSystemId": "sample string 3",
        "CompanyId": "2aae7bf3-51cf-4d45-9eff-a53030b56251",
        "CreateDate": "2024-04-28T18:31:25.103245-07:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-04-28T18:31:25.103245-07:00",
        "LastModifiedUser": "sample string 6"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "e6fc5461-10ad-4535-b63d-2bba0bdb81e1",
      "CreateDate": "2024-04-28T18:31:25.103245-07:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-04-28T18:31:25.103245-07:00",
      "LastModifiedUser": "sample string 4"
    },
    "Status": {
      "StatusId": "990fc7eb-5a57-40b4-b4c1-e99a47cbf608",
      "EffectiveDate": "2024-04-28T18:31:25.103245-07:00",
      "StatusType": {
        "StatusTypeId": "d5491a47-693c-4d95-88d2-b4d2c228b64a",
        "Name": "sample string 1",
        "IsProducing": true,
        "IsInjecting": true,
        "AssetType": {
          "AssetTypeId": "9621f2f8-12b3-42e2-a041-26e8dd691ddb",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "IsWell": true,
          "DisplayColor": "sample string 4",
          "SourceSystemId": "sample string 5",
          "CompanyId": "f19ffd04-7488-4f6a-a2b1-39b350a4983b",
          "CreateDate": "2024-04-28T18:31:25.103245-07:00",
          "CreateUser": "sample string 7",
          "LastModifiedDate": "2024-04-28T18:31:25.103245-07:00",
          "LastModifiedUser": "sample string 8"
        },
        "SourceSystemId": "sample string 4",
        "CompanyId": "86b62295-d446-45fb-a473-bb26a8ecc0db",
        "CreateDate": "2024-04-28T18:31:25.103245-07:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-04-28T18:31:25.103245-07:00",
        "LastModifiedUser": "sample string 7"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "717e0019-93a3-4bf9-8a0b-51d8f559775a",
      "CreateDate": "2024-04-28T18:31:25.103245-07:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-04-28T18:31:25.103245-07:00",
      "LastModifiedUser": "sample string 4"
    },
    "WellPurpose": {
      "WellPurposeId": "5272c362-90e5-40af-a19d-777e22c500f0",
      "EffectiveDate": "2024-04-28T18:31:25.103245-07:00",
      "WellPurposeType": {
        "WellPurposeTypeId": "fba9eff7-9aa5-4ee6-9f35-d394cf1b475f",
        "IsProducer": true,
        "IsInjector": true,
        "Name": "sample string 3",
        "SourceSystemId": "sample string 4",
        "CompanyId": "65384698-1a1e-4f6f-bdfe-4ab493c472be",
        "CreateDate": "2024-04-28T18:31:25.103245-07:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-04-28T18:31:25.103245-07:00",
        "LastModifiedUser": "sample string 7"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "21c69bfe-3a75-4391-bdbe-0b9c8364744c",
      "CreateDate": "2024-04-28T18:31:25.103245-07:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-04-28T18:31:25.103245-07:00",
      "LastModifiedUser": "sample string 4"
    },
    "FormValueNeededDate": "2024-04-28T18:31:25.103245-07:00",
    "MeasurementValueNeededDate": "2024-04-28T18:31:25.103245-07:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "87b38367-16a9-43d6-8164-9257a150878f",
    "CreateDate": "2024-04-28T18:31:25.103245-07:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-04-28T18:31:25.103245-07:00",
    "LastModifiedUser": "sample string 8"
  },
  "Total": 1,
  "Message": "sample string 1"
}