DELETE api/manage/gateways/{id}

Method for deleting gateway with a specific id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Id of the gateway.

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

The deleted gateway.

IoTGateway
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

GatewayClassId

integer

None.

Status

IoTStatus

None.

SasToken

string

None.

SasTokenTopicRead

string

None.

AssetId

integer

None.

ValidFrom

date

None.

ValidTo

date

None.

LoggingIsOn

boolean

None.

TokenExpiry

date

None.

TopicTokenExpiry

date

None.

DataProviderId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "4781e769-a4a3-4644-a2b9-8c0da32653b0",
  "GatewayClassId": 2,
  "Status": 0,
  "SasToken": "sample string 3",
  "SasTokenTopicRead": "sample string 4",
  "AssetId": 1,
  "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
  "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
  "LoggingIsOn": true,
  "TokenExpiry": "2025-12-23T13:40:51.9928531+00:00",
  "TopicTokenExpiry": "2025-12-23T13:40:51.9928531+00:00",
  "DataProviderId": 1,
  "devices": {},
  "Asset": {
    "$id": "1",
    "Id": 1,
    "Name": "sample string 2",
    "Description": "sample string 3",
    "InstallationDate": "2025-12-23T13:40:51.9928531+00:00",
    "CorporateCode": "sample string 4",
    "PurchasePrice": "sample string 5",
    "InServiceDate": "2025-12-23T13:40:51.9928531+00:00",
    "AddressId": 1,
    "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
    "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
    "DefaultTimeZoneId": "sample string 7",
    "ParticipantId": 1,
    "AssetActivityRecords": [
      {
        "$id": "2",
        "Id": 1,
        "AssetId": 2,
        "Reason": "sample string 3",
        "CreatedDateTime": "2025-12-23T13:40:51.9928531+00:00",
        "Severity": 0,
        "Category": "sample string 5",
        "Asset": {
          "$ref": "1"
        },
        "Documents": [
          {
            "$id": "3",
            "Id": 1,
            "Content": "QEA=",
            "AssetActivityRecordId": 2,
            "FileName": "sample string 3",
            "FileExtension": "sample string 4",
            "Description": "sample string 5",
            "AssetActivityRecord": {
              "$ref": "2"
            }
          },
          {
            "$ref": "3"
          }
        ],
        "AssetGuid": "13983c9d-50b9-41a7-a163-b8566ee777f4"
      },
      {
        "$ref": "2"
      }
    ],
    "Address": {
      "$id": "4",
      "Id": 1,
      "Street": "sample string 2",
      "StreetNumber": "sample string 3",
      "PostalCode": "sample string 4",
      "City": "sample string 5",
      "CountryId": "sample string 6",
      "ValidDate": "2025-12-23T13:40:51.9928531+00:00",
      "StreetNumberExtension": "sample string 8",
      "ParticipantId": 1,
      "LegalEntityDetails": [
        {
          "$id": "5",
          "Id": 1,
          "FirstName": "sample string 2",
          "LastName": "sample string 3",
          "OrganisationNo": "sample string 4",
          "Code": "sample string 5",
          "Note": "sample string 6",
          "ExternalId": "sample string 7",
          "DateOfBirth": "2025-12-23T13:40:51.9928531+00:00",
          "ParticipantId": 8,
          "AddressId": 1,
          "Participant": {
            "$id": "6",
            "Id": 1,
            "Name": "sample string 2",
            "ElectronicAddressId": 3,
            "AssetContracts": [
              {
                "$id": "7",
                "MeterId": 1,
                "Id": "e4d07e73-4a89-4367-bd8f-6bb640feb30b",
                "Meter": {
                  "$id": "8",
                  "MeterInstallation": {
                    "$id": "9",
                    "EANCode": "sample string 1",
                    "InstallationId": "sample string 11",
                    "Id": 12,
                    "SystemVoltage": 2.1,
                    "Name": "sample string 13",
                    "MainFuseNumPhases": 3,
                    "Description": "sample string 14",
                    "MainFuseCurrent": 4.1,
                    "InstallationDate": "2025-12-23T13:40:51.9928531+00:00",
                    "OverloadProtectionNumPhases": 5,
                    "CorporateCode": "sample string 15",
                    "OverloadProtectionCurrent": 6.1,
                    "PurchasePrice": "sample string 16",
                    "ShortCircuitNumPhases": 7,
                    "InServiceDate": "2025-12-23T13:40:51.9928531+00:00",
                    "ShortCircuitCurrent": 8.1,
                    "AddressId": 1,
                    "Meters": [
                      {
                        "$ref": "8"
                      },
                      {
                        "$ref": "8"
                      }
                    ],
                    "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                    "MeterPointNumber": "sample string 9",
                    "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                    "IndustryCode": "sample string 10",
                    "DefaultTimeZoneId": "sample string 18",
                    "InstallationType": 0,
                    "ParticipantId": 1,
                    "MeteringSiteClassificationId": 1,
                    "AssetActivityRecords": [
                      {
                        "$ref": "2"
                      },
                      {
                        "$ref": "2"
                      }
                    ],
                    "MeteringSiteClassification": {
                      "$id": "10",
                      "Id": 1,
                      "Code": "sample string 2",
                      "Description": "sample string 3"
                    },
                    "Address": {
                      "$ref": "4"
                    },
                    "AssetOwners": [
                      {
                        "$id": "11",
                        "Id": 1,
                        "AssetId": 2,
                        "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                        "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                        "ParticipantId": 5,
                        "Asset": {
                          "$ref": "1"
                        },
                        "Participant": {
                          "$ref": "6"
                        },
                        "AssetGuid": "f8dc61ed-7ce6-4b7a-95d9-08b6288a5c11"
                      },
                      {
                        "$ref": "11"
                      }
                    ],
                    "AssetRelationships": [
                      {
                        "$id": "12",
                        "Id": 1,
                        "Guid": "f4c4a149-676e-4391-9b39-5ef46bb45b53",
                        "AssetId": 3,
                        "Asset": {
                          "$ref": "1"
                        },
                        "AssetParentId": 1,
                        "AssetParent": {
                          "$ref": "1"
                        },
                        "RelationshipType": 0,
                        "AssetGuid": "2bb7e793-5298-4bc3-ba44-ce7f06a5b829",
                        "AssetParentGuid": "81a79ca8-3832-46a8-8ed1-d418bb6dbf4e",
                        "Priority": 6,
                        "PropertiesJsonString": "sample string 7",
                        "EntityState": 0,
                        "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                        "ValidTo": "2025-12-23T13:40:51.9928531+00:00"
                      },
                      {
                        "$ref": "12"
                      }
                    ],
                    "AssetParentRelationships": [
                      {
                        "$ref": "12"
                      },
                      {
                        "$ref": "12"
                      }
                    ],
                    "AssetTimeSeries": [
                      {
                        "$id": "13",
                        "Id": 1,
                        "AssetId": 2,
                        "Asset": {
                          "$ref": "1"
                        },
                        "BlobKey": "sample string 3",
                        "UnitType": 1,
                        "Unit": 0,
                        "Resolution": 0,
                        "TimeZoneId": "sample string 4",
                        "SampleFrequencyInSec": 1.1,
                        "LastValue": 1.1,
                        "LastCollected": "2025-12-23T13:40:51.9928531+00:00",
                        "LastCompleteCollection": "2025-12-23T13:40:51.9928531+00:00",
                        "IsCalculated": true,
                        "ParentTimeseriesId": 1,
                        "ParentTimeseries": null,
                        "Description": "sample string 6",
                        "DataOrigin": 0,
                        "AssetGuid": "7aec1aa2-43f3-44d9-96c0-917e8c582803"
                      },
                      {
                        "$ref": "13"
                      }
                    ],
                    "CommunicationUnits": [],
                    "Participant": {
                      "$ref": "6"
                    },
                    "Location": null,
                    "AssetWorkFlow": [
                      {
                        "$id": "14",
                        "InstanceId": "9f8639ad-5917-4906-80c2-35068eceb0b6",
                        "AssetId": 1,
                        "WorkFlowId": 2,
                        "Remarks": "sample string 3",
                        "ExecutedTime": "2025-12-23T13:40:51.9928531+00:00",
                        "Asset": {
                          "$ref": "1"
                        },
                        "Workflow": {
                          "$id": "15",
                          "Id": 1,
                          "Name": "sample string 2",
                          "Active": true,
                          "Content": "sample string 4",
                          "Status": 0,
                          "ParticipantId": 5,
                          "WorkflowContentType": 0,
                          "AssetWorkFlow": [
                            {
                              "$ref": "14"
                            },
                            {
                              "$ref": "14"
                            }
                          ],
                          "Participant": {
                            "$ref": "6"
                          },
                          "TimeSeriesTypeClass": 1
                        },
                        "ValidFromDateTime": "2025-12-23T13:40:51.9928531+00:00",
                        "ValidToDateTime": "2025-12-23T13:40:51.9928531+00:00",
                        "ManuallySet": true,
                        "AssetGuid": "15efe9d1-c0e5-489a-8c27-d9eaee26d5b0"
                      },
                      {
                        "$ref": "14"
                      }
                    ],
                    "AlarmHandlings": [
                      {
                        "$id": "16",
                        "Id": 1,
                        "AssetId": 2,
                        "Asset": {
                          "$ref": "1"
                        },
                        "Mode": 0,
                        "Description": "sample string 3",
                        "UserId": "sample string 4",
                        "User": {
                          "$id": "17",
                          "Id": "sample string 1",
                          "Name": "sample string 2",
                          "Lastlogon": "2025-12-23T13:40:51.9928531+00:00",
                          "picture": "QEA=",
                          "Created": "2025-12-23T13:40:51.9928531+00:00",
                          "Enabled": true,
                          "ElectronicAddress": {
                            "$id": "18",
                            "Id": 1,
                            "Email": "sample string 2",
                            "Url": "sample string 3",
                            "Password": "sample string 4",
                            "UserId": "sample string 5",
                            "ExternalId": "sample string 6",
                            "Phone": "sample string 7",
                            "Cell": "sample string 8",
                            "SipAddress": "sample string 9",
                            "TwitterUser": "sample string 10",
                            "FacebookUser": "sample string 11",
                            "ComUnitServiceConnections": [
                              {
                                "$id": "19",
                                "Id": 1,
                                "CommunicationUnitId": 2,
                                "CloudServiceConnectionId": 3,
                                "ElectronicAddressId": 4,
                                "CommunicationUnit": null,
                                "CloudServiceConnection": {
                                  "$id": "20",
                                  "Id": 1,
                                  "ServiceName": "sample string 2",
                                  "BaseUrl": "sample string 3",
                                  "ComUnitServiceConnections": [
                                    {
                                      "$ref": "19"
                                    },
                                    {
                                      "$ref": "19"
                                    }
                                  ],
                                  "Username": "sample string 4",
                                  "Password": "sample string 5"
                                },
                                "ElectronicAddress": {
                                  "$ref": "18"
                                }
                              },
                              {
                                "$ref": "19"
                              }
                            ],
                            "Participants": [
                              {
                                "$ref": "6"
                              },
                              {
                                "$ref": "6"
                              }
                            ]
                          },
                          "ElectronicAddressId": 1,
                          "UserGroups": [
                            {
                              "$id": "21",
                              "Id": 1,
                              "Name": "sample string 2",
                              "Description": "sample string 3",
                              "ParticipantId": 1,
                              "Users": [
                                {
                                  "$ref": "17"
                                },
                                {
                                  "$ref": "17"
                                }
                              ],
                              "Roles": [
                                {
                                  "$id": "22",
                                  "Id": 1,
                                  "Name": "sample string 2",
                                  "Description": "sample string 3",
                                  "RoleFunctions": [
                                    {
                                      "$id": "23",
                                      "Id": 1,
                                      "RoleId": 2,
                                      "SystemFunctionId": 3,
                                      "Permission": 0,
                                      "UserRole": {
                                        "$ref": "22"
                                      },
                                      "SystemFunction": {
                                        "$id": "24",
                                        "Id": 1,
                                        "Name": "sample string 2",
                                        "Enabled": true,
                                        "Description": "sample string 4",
                                        "RoleFunctions": [
                                          {
                                            "$ref": "23"
                                          },
                                          {
                                            "$ref": "23"
                                          }
                                        ],
                                        "SystemProperties": []
                                      }
                                    },
                                    {
                                      "$ref": "23"
                                    }
                                  ],
                                  "Groups": [
                                    {
                                      "$ref": "21"
                                    },
                                    {
                                      "$ref": "21"
                                    }
                                  ]
                                },
                                {
                                  "$ref": "22"
                                }
                              ],
                              "Participant": {
                                "$ref": "6"
                              }
                            },
                            {
                              "$ref": "21"
                            }
                          ],
                          "SearchFilters": [
                            {
                              "$id": "25",
                              "SearchFilters": "QEA=",
                              "Id": 4,
                              "Guid": "ac9d46bc-4de9-4970-a301-f069ac6600b1",
                              "Name": "sample string 5",
                              "UserId": "sample string 2",
                              "Description": "sample string 6",
                              "User": {
                                "$ref": "17"
                              },
                              "InstallationDate": "2025-12-23T13:40:51.9928531+00:00",
                              "IsShared": true,
                              "CorporateCode": "sample string 7",
                              "ZoneControlContracts": [
                                {
                                  "$id": "26",
                                  "SearchFilterId": 1,
                                  "Id": "b437351c-6348-4549-94c7-d1322585934a",
                                  "SearchFilter": {
                                    "$ref": "25"
                                  },
                                  "ContractId": "1c111ee7-c1ad-48a9-a8bb-e86d613ce6bb",
                                  "MaxPowerPrActivation": 2.1,
                                  "Contract": {
                                    "$id": "27",
                                    "Id": "04c1bc91-06c3-410e-98e0-61ad4c0a55a5",
                                    "Name": "sample string 2",
                                    "OwnerLegalEntityId": 3,
                                    "OwnerLegalEntity": {
                                      "$id": "28",
                                      "Id": 1,
                                      "Name": "sample string 2",
                                      "EntityType": 0,
                                      "ExternalId": "sample string 3",
                                      "LegalEntityRoles": [
                                        {
                                          "$id": "29",
                                          "LegalEntityId": 1,
                                          "LegalEntity": {
                                            "$ref": "28"
                                          },
                                          "LegalEntityDetailId": 2,
                                          "LegalEntityDetail": {
                                            "$ref": "5"
                                          },
                                          "RoleType": 0,
                                          "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                                          "ValidTo": "2025-12-23T13:40:51.9928531+00:00"
                                        },
                                        {
                                          "$ref": "29"
                                        }
                                      ]
                                    },
                                    "PartnerLegalEntityId": 4,
                                    "PartnerLegalEntity": {
                                      "$ref": "28"
                                    },
                                    "BuyOrSale": 0,
                                    "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                                    "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                                    "CancelTime": "2025-12-23T13:40:51.9928531+00:00",
                                    "ExternalContractId": "sample string 7",
                                    "ProductId": 1,
                                    "Product": {
                                      "$id": "30",
                                      "Id": 1,
                                      "Name": "sample string 2",
                                      "PaymentType": "sample string 4",
                                      "ExternalId": "sample string 5"
                                    },
                                    "Assets": [
                                      {
                                        "$id": "31",
                                        "Id": "4f2f88b2-c9cc-4f6a-b0d6-9c0c87e11f91",
                                        "ContractId": "e3fcfce9-6491-455d-a152-0769ae09fafb",
                                        "Contract": {
                                          "$ref": "27"
                                        },
                                        "Name": "sample string 3",
                                        "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                                        "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                                        "CancelTime": "2025-12-23T13:40:51.9928531+00:00",
                                        "Signed": "2025-12-23T13:40:51.9928531+00:00",
                                        "Renewal": 0,
                                        "ParticipantId": 6,
                                        "Participant": {
                                          "$ref": "6"
                                        }
                                      },
                                      {
                                        "$ref": "31"
                                      }
                                    ],
                                    "Signed": "2025-12-23T13:40:51.9928531+00:00"
                                  },
                                  "DaysAllowedForActivation": 0,
                                  "Name": "sample string 12",
                                  "PermittedIntervals": "sample string 3",
                                  "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                                  "MaxAllowedActivationTime": 1,
                                  "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                                  "MininumTimeBetweenActivation": 4,
                                  "CancelTime": "2025-12-23T13:40:51.9928531+00:00",
                                  "Tolerance": 5.1,
                                  "Signed": "2025-12-23T13:40:51.9928531+00:00",
                                  "ReservationFee": 6.1,
                                  "Renewal": 0,
                                  "ActivationFeeWorkdays": 7.1,
                                  "ParticipantId": 15,
                                  "ActivationFeeNonWorkdays": 8.1,
                                  "Participant": {
                                    "$ref": "6"
                                  },
                                  "NonConformanceClause": "sample string 9"
                                },
                                {
                                  "$ref": "26"
                                }
                              ],
                              "PurchasePrice": "sample string 8",
                              "InServiceDate": "2025-12-23T13:40:51.9928531+00:00",
                              "AddressId": 1,
                              "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                              "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                              "DefaultTimeZoneId": "sample string 10",
                              "ParticipantId": 1,
                              "AssetActivityRecords": [
                                {
                                  "$ref": "2"
                                },
                                {
                                  "$ref": "2"
                                }
                              ],
                              "Address": {
                                "$ref": "4"
                              },
                              "AssetOwners": [
                                {
                                  "$ref": "11"
                                },
                                {
                                  "$ref": "11"
                                }
                              ],
                              "AssetRelationships": [
                                {
                                  "$ref": "12"
                                },
                                {
                                  "$ref": "12"
                                }
                              ],
                              "AssetParentRelationships": [
                                {
                                  "$ref": "12"
                                },
                                {
                                  "$ref": "12"
                                }
                              ],
                              "AssetTimeSeries": [
                                {
                                  "$ref": "13"
                                },
                                {
                                  "$ref": "13"
                                }
                              ],
                              "CommunicationUnits": [],
                              "Participant": {
                                "$ref": "6"
                              },
                              "Location": {
                                "$id": "32",
                                "AssetId": 1,
                                "Asset": {
                                  "$ref": "1"
                                },
                                "SpartialReference": 2,
                                "GeoBinary": "QEA=",
                                "AssetGuid": "00000000-0000-0000-0000-000000000000"
                              },
                              "AssetWorkFlow": [
                                {
                                  "$ref": "14"
                                },
                                {
                                  "$ref": "14"
                                }
                              ],
                              "AlarmHandlings": [
                                {
                                  "$ref": "16"
                                },
                                {
                                  "$ref": "16"
                                }
                              ],
                              "Categories": [
                                {
                                  "$id": "33",
                                  "Id": 1,
                                  "Name": "sample string 2",
                                  "Description": "sample string 3",
                                  "SourceStatus": 0,
                                  "Source": "sample string 4",
                                  "Participant": {
                                    "$ref": "6"
                                  },
                                  "ParticipantId": 5,
                                  "Assets": [
                                    {
                                      "$ref": "1"
                                    },
                                    {
                                      "$ref": "1"
                                    }
                                  ],
                                  "CategoryType": 0
                                },
                                {
                                  "$ref": "33"
                                }
                              ],
                              "AssetModelId": 1,
                              "AssetModel": {
                                "$id": "34",
                                "Id": 1,
                                "Description": "sample string 2",
                                "Note": "sample string 3",
                                "ExternalId": "sample string 4",
                                "TypeCode": "sample string 5",
                                "ModelCode": "sample string 6",
                                "HasOffSwitch": true,
                                "InitialValue": 8.1,
                                "Manufacturer": "sample string 9",
                                "ModelVersion": "sample string 10",
                                "AssetModelProperties": [
                                  {
                                    "$id": "35",
                                    "Id": 1,
                                    "Name": "sample string 2",
                                    "Value": "sample string 3",
                                    "AssetModelId": 4,
                                    "AssetModel": {
                                      "$ref": "34"
                                    }
                                  },
                                  {
                                    "$ref": "35"
                                  }
                                ]
                              },
                              "CreatedTime": "2025-12-23T13:40:51.9928531+00:00",
                              "ImportSource": "sample string 11",
                              "Note": "sample string 12",
                              "Configurations": [],
                              "ModifiedTime": "2025-12-23T13:40:51.9928531+00:00",
                              "AssetCalculations": [
                                {
                                  "$id": "36",
                                  "AssetId": 1,
                                  "CalculationId": 2,
                                  "Asset": {
                                    "$ref": "1"
                                  },
                                  "Calculation": {
                                    "$id": "37",
                                    "Id": 1,
                                    "CalculationDefinitionId": 2,
                                    "Name": "sample string 3",
                                    "Description": "sample string 4",
                                    "lastRunTime": "2025-12-23T13:40:51.9928531+00:00",
                                    "FrequencyInSeconds": 5,
                                    "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                                    "ValidTo": "2025-12-23T13:40:51.9928531+00:00"
                                  },
                                  "ValidFromDateTime": "2025-12-23T13:40:51.9928531+00:00",
                                  "ValidToDateTime": "2025-12-23T13:40:51.9928531+00:00",
                                  "ManuallySet": true,
                                  "AssetGuid": "17379ba4-c256-4829-b0b8-35c678439c38"
                                },
                                {
                                  "$ref": "36"
                                }
                              ],
                              "CoordinateModified": true,
                              "SerialNumber": "sample string 14",
                              "AssetGuid": "48f2d96f-9232-4ed7-9aee-2b91fdad3211",
                              "Contracts": [
                                {
                                  "$id": "38",
                                  "AssetId": 1,
                                  "Id": "a2fb3e64-10a7-4329-892e-fcba05b7a9e2",
                                  "Asset": {
                                    "$ref": "1"
                                  },
                                  "Name": "sample string 4",
                                  "ParticipantId": 2,
                                  "OwnerLegalEntityId": 5,
                                  "Participant": {
                                    "$ref": "6"
                                  },
                                  "OwnerLegalEntity": {
                                    "$ref": "28"
                                  },
                                  "Type": 0,
                                  "PartnerLegalEntityId": 6,
                                  "PartnerLegalEntity": {
                                    "$ref": "28"
                                  },
                                  "BuyOrSale": 0,
                                  "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                                  "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                                  "CancelTime": "2025-12-23T13:40:51.9928531+00:00",
                                  "ExternalContractId": "sample string 9",
                                  "ProductId": 1,
                                  "Product": {
                                    "$ref": "30"
                                  },
                                  "Assets": [
                                    {
                                      "$ref": "31"
                                    },
                                    {
                                      "$ref": "31"
                                    }
                                  ],
                                  "Signed": "2025-12-23T13:40:51.9928531+00:00"
                                },
                                {
                                  "$ref": "38"
                                }
                              ],
                              "Resource": null,
                              "AssetSubContracts": [
                                {
                                  "$id": "39",
                                  "AssetId": 1,
                                  "Id": "c5e7305f-7d59-4ae2-bd47-3bcdd6e40da0",
                                  "Asset": {
                                    "$ref": "1"
                                  },
                                  "ContractId": "a28b3926-fc4a-42d0-8082-790ecaea6a58",
                                  "Contract": {
                                    "$ref": "27"
                                  },
                                  "Name": "sample string 4",
                                  "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                                  "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                                  "CancelTime": "2025-12-23T13:40:51.9928531+00:00",
                                  "Signed": "2025-12-23T13:40:51.9928531+00:00",
                                  "Renewal": 0,
                                  "ParticipantId": 7,
                                  "Participant": {
                                    "$ref": "6"
                                  }
                                },
                                {
                                  "$ref": "39"
                                }
                              ],
                              "SDBMHash": 16,
                              "LabelGuid": "6c5104da-df89-4f24-9a74-95e93d949ea8",
                              "ExternalKeys": [
                                {
                                  "$id": "40",
                                  "AssetId": 1,
                                  "ExternalId": "sample string 2",
                                  "ExternalSystemId": "3b5c9663-2766-40f3-a36a-23247573cd3e",
                                  "ExternalSystem": {
                                    "$id": "41",
                                    "Id": "d591eb11-1ca0-4e62-ad47-cb049e7cf33e",
                                    "SystemName": "sample string 2"
                                  }
                                },
                                {
                                  "$ref": "40"
                                }
                              ],
                              "EntityState": 0
                            },
                            {
                              "$ref": "25"
                            }
                          ],
                          "Diagrams": [
                            {
                              "$id": "42",
                              "Id": 1,
                              "DiagramKey": "sample string 2",
                              "CreatedTime": "2025-12-23T13:40:51.9928531+00:00",
                              "ModifiedTime": "2025-12-23T13:40:51.9928531+00:00",
                              "UserId": "sample string 5",
                              "IsShared": true,
                              "User": {
                                "$ref": "17"
                              },
                              "Description": "sample string 7",
                              "Name": "sample string 8",
                              "DiagramType": 0
                            },
                            {
                              "$ref": "42"
                            }
                          ],
                          "FirstName": "sample string 5",
                          "LastName": "sample string 6"
                        },
                        "CreatedDateTime": "2025-12-23T13:40:51.9928531+00:00",
                        "FromDateTime": "2025-12-23T13:40:51.9928531+00:00",
                        "ToDateTime": "2025-12-23T13:40:51.9928531+00:00",
                        "AssetGuid": "2a2d088d-2a39-411f-8671-f2de54f0af0e"
                      },
                      {
                        "$ref": "16"
                      }
                    ],
                    "Categories": [
                      {
                        "$ref": "33"
                      },
                      {
                        "$ref": "33"
                      }
                    ],
                    "AssetModelId": 1,
                    "AssetModel": {
                      "$ref": "34"
                    },
                    "CreatedTime": "2025-12-23T13:40:51.9928531+00:00",
                    "ImportSource": "sample string 19",
                    "Note": "sample string 20",
                    "Configurations": [],
                    "ModifiedTime": "2025-12-23T13:40:51.9928531+00:00",
                    "AssetCalculations": [
                      {
                        "$ref": "36"
                      },
                      {
                        "$ref": "36"
                      }
                    ],
                    "CoordinateModified": true,
                    "SerialNumber": "sample string 22",
                    "AssetGuid": "e83f425b-8e62-4e76-973e-df5664506cb8",
                    "Contracts": [
                      {
                        "$ref": "38"
                      },
                      {
                        "$ref": "38"
                      }
                    ],
                    "Resource": null,
                    "AssetSubContracts": [
                      {
                        "$ref": "39"
                      },
                      {
                        "$ref": "39"
                      }
                    ],
                    "SDBMHash": 24,
                    "LabelGuid": "748595b3-3a36-42d1-8c68-0e854a92b7c9",
                    "ExternalKeys": [
                      {
                        "$ref": "40"
                      },
                      {
                        "$ref": "40"
                      }
                    ],
                    "EntityState": 0
                  },
                  "Id": 7,
                  "MeterInstallationId": 1,
                  "Name": "sample string 8",
                  "FacilityId": "sample string 1",
                  "Description": "sample string 9",
                  "MeterId": "sample string 2",
                  "InstallationDate": "2025-12-23T13:40:51.9928531+00:00",
                  "Status": 1,
                  "CorporateCode": "sample string 10",
                  "MeterType": 0,
                  "PurchasePrice": "sample string 11",
                  "EstimatedAnnualUsage": 1.1,
                  "InServiceDate": "2025-12-23T13:40:51.9928531+00:00",
                  "EnergyProviderContracts": [
                    {
                      "$id": "43",
                      "MeterId": 1,
                      "Id": "33849760-5cb1-4f8e-84ce-a454534e1554",
                      "Meter": {
                        "$ref": "8"
                      },
                      "Name": "sample string 4",
                      "ParticipantId": 2,
                      "OwnerLegalEntityId": 5,
                      "Participant": {
                        "$ref": "6"
                      },
                      "OwnerLegalEntity": {
                        "$ref": "28"
                      },
                      "PartnerLegalEntityId": 6,
                      "PartnerLegalEntity": {
                        "$ref": "28"
                      },
                      "BuyOrSale": 0,
                      "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                      "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                      "CancelTime": "2025-12-23T13:40:51.9928531+00:00",
                      "ExternalContractId": "sample string 9",
                      "ProductId": 1,
                      "Product": {
                        "$ref": "30"
                      },
                      "Assets": [
                        {
                          "$ref": "31"
                        },
                        {
                          "$ref": "31"
                        }
                      ],
                      "Signed": "2025-12-23T13:40:51.9928531+00:00"
                    },
                    {
                      "$ref": "43"
                    }
                  ],
                  "AddressId": 1,
                  "PowerDistributionContracts": [
                    {
                      "$ref": "7"
                    },
                    {
                      "$ref": "7"
                    }
                  ],
                  "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                  "LeftDigitCount": 1,
                  "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                  "RightDigitCount": 1,
                  "DefaultTimeZoneId": "sample string 13",
                  "ConversionFactor": 1.0,
                  "ParticipantId": 1,
                  "StartValue": 3.1,
                  "AssetActivityRecords": [
                    {
                      "$ref": "2"
                    },
                    {
                      "$ref": "2"
                    }
                  ],
                  "AmiMeterType": 0,
                  "Address": {
                    "$ref": "4"
                  },
                  "P2P": true,
                  "SimCards": [
                    {
                      "$id": "44",
                      "VoltageLevel": "sample string 1",
                      "Id": 10,
                      "StorageCapacity": "sample string 2",
                      "Name": "sample string 11",
                      "NumberOfContacts": "sample string 3",
                      "Description": "sample string 12",
                      "Data": "sample string 4",
                      "InstallationDate": "2025-12-23T13:40:51.9928531+00:00",
                      "PreferredNetworksList": [
                        "sample string 1",
                        "sample string 2"
                      ],
                      "CorporateCode": "sample string 13",
                      "ICCID": "sample string 5",
                      "PurchasePrice": "sample string 14",
                      "Installed": "2025-12-23T13:40:51.9928531+00:00",
                      "InServiceDate": "2025-12-23T13:40:51.9928531+00:00",
                      "Active": true,
                      "AddressId": 1,
                      "PhoneCommunicationUnitId": 1,
                      "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                      "PhoneCommunicationUnit": {
                        "$id": "45",
                        "PhoneNumber": "sample string 1",
                        "Id": 2,
                        "SimCards": [
                          {
                            "$ref": "44"
                          },
                          {
                            "$ref": "44"
                          }
                        ],
                        "MacAddress": "sample string 3",
                        "SerialNumber": "sample string 4",
                        "NetworkCarrier": 1,
                        "AssetId": 5,
                        "CloudServiceConnectionId": 6,
                        "Asset": {
                          "$ref": "1"
                        },
                        "ComUnitServiceConnections": [
                          {
                            "$ref": "19"
                          },
                          {
                            "$ref": "19"
                          }
                        ],
                        "AssetGuid": "e2012ea0-c8ae-4397-bc8a-90d4a59db293"
                      },
                      "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                      "PhoneNumber": "sample string 8",
                      "DefaultTimeZoneId": "sample string 16",
                      "IpAddress": "sample string 9",
                      "ParticipantId": 1,
                      "AssetActivityRecords": [
                        {
                          "$ref": "2"
                        },
                        {
                          "$ref": "2"
                        }
                      ],
                      "Address": {
                        "$ref": "4"
                      },
                      "AssetOwners": [
                        {
                          "$ref": "11"
                        },
                        {
                          "$ref": "11"
                        }
                      ],
                      "AssetRelationships": [
                        {
                          "$ref": "12"
                        },
                        {
                          "$ref": "12"
                        }
                      ],
                      "AssetParentRelationships": [
                        {
                          "$ref": "12"
                        },
                        {
                          "$ref": "12"
                        }
                      ],
                      "AssetTimeSeries": [
                        {
                          "$ref": "13"
                        },
                        {
                          "$ref": "13"
                        }
                      ],
                      "CommunicationUnits": [],
                      "Participant": {
                        "$ref": "6"
                      },
                      "Location": {
                        "$ref": "32"
                      },
                      "AssetWorkFlow": [
                        {
                          "$ref": "14"
                        },
                        {
                          "$ref": "14"
                        }
                      ],
                      "AlarmHandlings": [
                        {
                          "$ref": "16"
                        },
                        {
                          "$ref": "16"
                        }
                      ],
                      "Categories": [
                        {
                          "$ref": "33"
                        },
                        {
                          "$ref": "33"
                        }
                      ],
                      "AssetModelId": 1,
                      "AssetModel": {
                        "$ref": "34"
                      },
                      "CreatedTime": "2025-12-23T13:40:51.9928531+00:00",
                      "ImportSource": "sample string 17",
                      "Note": "sample string 18",
                      "Configurations": [],
                      "ModifiedTime": "2025-12-23T13:40:51.9928531+00:00",
                      "AssetCalculations": [
                        {
                          "$ref": "36"
                        },
                        {
                          "$ref": "36"
                        }
                      ],
                      "CoordinateModified": true,
                      "SerialNumber": "sample string 20",
                      "AssetGuid": "89cd76ef-d158-4dde-8954-b9706e4b0915",
                      "Contracts": [
                        {
                          "$ref": "38"
                        },
                        {
                          "$ref": "38"
                        }
                      ],
                      "Resource": null,
                      "AssetSubContracts": [
                        {
                          "$ref": "39"
                        },
                        {
                          "$ref": "39"
                        }
                      ],
                      "SDBMHash": 22,
                      "LabelGuid": "819e2fd3-ebaa-44f3-b4e4-1048d23fee62",
                      "ExternalKeys": [
                        {
                          "$ref": "40"
                        },
                        {
                          "$ref": "40"
                        }
                      ],
                      "EntityState": 0
                    },
                    {
                      "$ref": "44"
                    }
                  ],
                  "AssetOwners": [
                    {
                      "$ref": "11"
                    },
                    {
                      "$ref": "11"
                    }
                  ],
                  "SimCardId": "sample string 5",
                  "AssetRelationships": [
                    {
                      "$ref": "12"
                    },
                    {
                      "$ref": "12"
                    }
                  ],
                  "ModemImei": "sample string 6",
                  "AssetParentRelationships": [
                    {
                      "$ref": "12"
                    },
                    {
                      "$ref": "12"
                    }
                  ],
                  "Antenna": {
                    "$id": "46",
                    "Impedans": "sample string 1",
                    "Id": 7,
                    "EffectArea": "sample string 2",
                    "Name": "sample string 8",
                    "Placement": "sample string 3",
                    "Description": "sample string 9",
                    "Position": "sample string 4",
                    "InstallationDate": "2025-12-23T13:40:51.9928531+00:00",
                    "Documentation": "sample string 5",
                    "CorporateCode": "sample string 10",
                    "AntennaType": 0,
                    "PurchasePrice": "sample string 11",
                    "OpeningAngle": 6.1,
                    "InServiceDate": "2025-12-23T13:40:51.9928531+00:00",
                    "AddressId": 1,
                    "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                    "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                    "DefaultTimeZoneId": "sample string 13",
                    "ParticipantId": 1,
                    "AssetActivityRecords": [
                      {
                        "$ref": "2"
                      },
                      {
                        "$ref": "2"
                      }
                    ],
                    "Address": {
                      "$ref": "4"
                    },
                    "AssetOwners": [
                      {
                        "$ref": "11"
                      },
                      {
                        "$ref": "11"
                      }
                    ],
                    "AssetRelationships": [
                      {
                        "$ref": "12"
                      },
                      {
                        "$ref": "12"
                      }
                    ],
                    "AssetParentRelationships": [
                      {
                        "$ref": "12"
                      },
                      {
                        "$ref": "12"
                      }
                    ],
                    "AssetTimeSeries": [
                      {
                        "$ref": "13"
                      },
                      {
                        "$ref": "13"
                      }
                    ],
                    "CommunicationUnits": [],
                    "Participant": {
                      "$ref": "6"
                    },
                    "Location": {
                      "$ref": "32"
                    },
                    "AssetWorkFlow": [
                      {
                        "$ref": "14"
                      },
                      {
                        "$ref": "14"
                      }
                    ],
                    "AlarmHandlings": [
                      {
                        "$ref": "16"
                      },
                      {
                        "$ref": "16"
                      }
                    ],
                    "Categories": [
                      {
                        "$ref": "33"
                      },
                      {
                        "$ref": "33"
                      }
                    ],
                    "AssetModelId": 1,
                    "AssetModel": {
                      "$ref": "34"
                    },
                    "CreatedTime": "2025-12-23T13:40:51.9928531+00:00",
                    "ImportSource": "sample string 14",
                    "Note": "sample string 15",
                    "Configurations": [],
                    "ModifiedTime": "2025-12-23T13:40:51.9928531+00:00",
                    "AssetCalculations": [
                      {
                        "$ref": "36"
                      },
                      {
                        "$ref": "36"
                      }
                    ],
                    "CoordinateModified": true,
                    "SerialNumber": "sample string 17",
                    "AssetGuid": "818e4565-953e-44ec-9cc8-ded29f81accc",
                    "Contracts": [
                      {
                        "$ref": "38"
                      },
                      {
                        "$ref": "38"
                      }
                    ],
                    "Resource": null,
                    "AssetSubContracts": [
                      {
                        "$ref": "39"
                      },
                      {
                        "$ref": "39"
                      }
                    ],
                    "SDBMHash": 19,
                    "LabelGuid": "8b76b2a8-10c1-458e-8068-b73e1ec9c5dd",
                    "ExternalKeys": [
                      {
                        "$ref": "40"
                      },
                      {
                        "$ref": "40"
                      }
                    ],
                    "EntityState": 0
                  },
                  "AssetTimeSeries": [
                    {
                      "$ref": "13"
                    },
                    {
                      "$ref": "13"
                    }
                  ],
                  "AntennaId": 1,
                  "CommunicationUnits": [],
                  "Participant": {
                    "$ref": "6"
                  },
                  "Location": {
                    "$ref": "32"
                  },
                  "AssetWorkFlow": [
                    {
                      "$ref": "14"
                    },
                    {
                      "$ref": "14"
                    }
                  ],
                  "AlarmHandlings": [
                    {
                      "$ref": "16"
                    },
                    {
                      "$ref": "16"
                    }
                  ],
                  "Categories": [
                    {
                      "$ref": "33"
                    },
                    {
                      "$ref": "33"
                    }
                  ],
                  "AssetModelId": 1,
                  "AssetModel": {
                    "$ref": "34"
                  },
                  "CreatedTime": "2025-12-23T13:40:51.9928531+00:00",
                  "ImportSource": "sample string 14",
                  "Note": "sample string 15",
                  "Configurations": [],
                  "ModifiedTime": "2025-12-23T13:40:51.9928531+00:00",
                  "AssetCalculations": [
                    {
                      "$ref": "36"
                    },
                    {
                      "$ref": "36"
                    }
                  ],
                  "CoordinateModified": true,
                  "SerialNumber": "sample string 17",
                  "AssetGuid": "f343ca13-1db5-46c1-b3c8-c0ac0159d67c",
                  "Contracts": [
                    {
                      "$ref": "38"
                    },
                    {
                      "$ref": "38"
                    }
                  ],
                  "Resource": null,
                  "AssetSubContracts": [
                    {
                      "$ref": "39"
                    },
                    {
                      "$ref": "39"
                    }
                  ],
                  "SDBMHash": 19,
                  "LabelGuid": "e79679c1-0f36-4f87-b3af-1302e466a96b",
                  "ExternalKeys": [
                    {
                      "$ref": "40"
                    },
                    {
                      "$ref": "40"
                    }
                  ],
                  "EntityState": 0
                },
                "Name": "sample string 4",
                "ParticipantId": 2,
                "OwnerLegalEntityId": 5,
                "Participant": {
                  "$ref": "6"
                },
                "OwnerLegalEntity": {
                  "$ref": "28"
                },
                "PartnerLegalEntityId": 6,
                "PartnerLegalEntity": {
                  "$ref": "28"
                },
                "BuyOrSale": 0,
                "ValidFrom": "2025-12-23T13:40:51.9928531+00:00",
                "ValidTo": "2025-12-23T13:40:51.9928531+00:00",
                "CancelTime": "2025-12-23T13:40:51.9928531+00:00",
                "ExternalContractId": "sample string 9",
                "ProductId": 1,
                "Product": {
                  "$ref": "30"
                },
                "Assets": [
                  {
                    "$ref": "31"
                  },
                  {
                    "$ref": "31"
                  }
                ],
                "Signed": "2025-12-23T13:40:51.9928531+00:00"
              },
              {
                "$ref": "7"
              }
            ],
            "AssetOwners": [
              {
                "$ref": "11"
              },
              {
                "$ref": "11"
              }
            ],
            "ElectronicAddress": {
              "$ref": "18"
            },
            "Assets": [
              {
                "$ref": "1"
              },
              {
                "$ref": "1"
              }
            ],
            "Schedules": [
              {
                "$id": "47",
                "Id": 1,
                "ExecutionTimeUTC": "2025-12-23T13:40:51.9928531+00:00",
                "TimeZone": "sample string 2",
                "LastExecutedTimeUTC": "2025-12-23T13:40:51.9928531+00:00",
                "RepeatDayTue": true,
                "RepeatStartTimeUTC": "00:00:00.1234567",
                "RepeatEndTimeUTC": "00:00:00.1234567",
                "RepeatEveryWeekdayInMonth": "sample string 3",
                "RepeatSeconds": 1,
                "RepeatDayMon": true,
                "RepeatDayWed": true,
                "RepeatDayThu": true,
                "RepeatDayFri": true,
                "RepeatDaySat": true,
                "RepeatDaySun": true,
                "RepeatEveryXDay": 1,
                "RepeatEveryXMonth": 1,
                "RepeatEveryWeekdayNoInMonth": 1,
                "RepeatEveryXYear": 1,
                "EndNoOfOccurences": 1,
                "RepeatExactDateTimeUTC": "2025-12-23T13:40:51.9928531+00:00",
                "EndDateTimeUTC": "2025-12-23T13:40:51.9928531+00:00",
                "RepeatTimeUTC": "00:00:00.1234567",
                "NoOfOccurences": 1,
                "Status": 0,
                "ParticipantId": 4,
                "Participant": {
                  "$ref": "6"
                }
              },
              {
                "$ref": "47"
              }
            ],
            "UserGroups": [
              {
                "$ref": "21"
              },
              {
                "$ref": "21"
              }
            ],
            "LegalEntityId": 1,
            "LegalEntity": {
              "$ref": "28"
            },
            "GridOwnerCode": "sample string 4",
            "AddressId": 1,
            "InvoiceAddressId": 1,
            "OrganizationNumber": "sample string 5",
            "Address": {
              "$ref": "4"
            },
            "InvoiceAddress": {
              "$ref": "4"
            },
            "ShortName": "sample string 6"
          },
          "Address": {
            "$ref": "4"
          },
          "ElectronicAddress": {
            "$ref": "18"
          },
          "ElectronicAddressId": 1,
          "GlobalLocationNumber": "sample string 9"
        },
        {
          "$ref": "5"
        }
      ],
      "Assets": [
        {
          "$ref": "1"
        },
        {
          "$ref": "1"
        }
      ],
      "Participant": {
        "$ref": "6"
      },
      "CoAddress": "sample string 9",
      "ExtraAddress": "sample string 10",
      "Country": "sample string 11",
      "StateOrProvince": "sample string 12",
      "StateOrProvinceId": "sample string 13",
      "Postbox": "sample string 14"
    },
    "AssetOwners": [
      {
        "$ref": "11"
      },
      {
        "$ref": "11"
      }
    ],
    "AssetRelationships": [
      {
        "$ref": "12"
      },
      {
        "$ref": "12"
      }
    ],
    "AssetParentRelationships": [
      {
        "$ref": "12"
      },
      {
        "$ref": "12"
      }
    ],
    "AssetTimeSeries": [
      {
        "$ref": "13"
      },
      {
        "$ref": "13"
      }
    ],
    "CommunicationUnits": [],
    "Participant": {
      "$ref": "6"
    },
    "Location": {
      "$ref": "32"
    },
    "AssetWorkFlow": [
      {
        "$ref": "14"
      },
      {
        "$ref": "14"
      }
    ],
    "AlarmHandlings": [
      {
        "$ref": "16"
      },
      {
        "$ref": "16"
      }
    ],
    "Categories": [
      {
        "$ref": "33"
      },
      {
        "$ref": "33"
      }
    ],
    "AssetModelId": 1,
    "AssetModel": {
      "$ref": "34"
    },
    "CreatedTime": "2025-12-23T13:40:51.9928531+00:00",
    "ImportSource": "sample string 8",
    "Note": "sample string 9",
    "Configurations": [],
    "ModifiedTime": "2025-12-23T13:40:51.9928531+00:00",
    "AssetCalculations": [
      {
        "$ref": "36"
      },
      {
        "$ref": "36"
      }
    ],
    "CoordinateModified": true,
    "SerialNumber": "sample string 11",
    "AssetGuid": "8e3a3883-6a41-4a3b-9933-a1c736d27db1",
    "Contracts": [
      {
        "$ref": "38"
      },
      {
        "$ref": "38"
      }
    ],
    "Resource": null,
    "AssetSubContracts": [
      {
        "$ref": "39"
      },
      {
        "$ref": "39"
      }
    ],
    "SDBMHash": 13,
    "LabelGuid": "aa737e3e-3a7b-4058-994b-305ba2816878",
    "ExternalKeys": [
      {
        "$ref": "40"
      },
      {
        "$ref": "40"
      }
    ],
    "EntityState": 0
  }
}

application/xml, text/xml

Sample:
<IoTGateway xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/eSmart.Common.Data.Domain">
  <Id>4781e769-a4a3-4644-a2b9-8c0da32653b0</Id>
  <GatewayClassId>2</GatewayClassId>
  <Status>New</Status>
  <SasToken>sample string 3</SasToken>
  <SasTokenTopicRead>sample string 4</SasTokenTopicRead>
  <AssetId>1</AssetId>
  <ValidFrom>2025-12-23T13:40:51.9928531+00:00</ValidFrom>
  <ValidTo>2025-12-23T13:40:51.9928531+00:00</ValidTo>
  <LoggingIsOn>true</LoggingIsOn>
  <TokenExpiry>2025-12-23T13:40:51.9928531+00:00</TokenExpiry>
  <TopicTokenExpiry>2025-12-23T13:40:51.9928531+00:00</TopicTokenExpiry>
  <DataProviderId>1</DataProviderId>
  <DataProvider z:Id="i2">
    <Id>1</Id>
    <GatewayClassId>2</GatewayClassId>
    <Name>sample string 3</Name>
    <EndpointId>4</EndpointId>
    <AlertNewDevicesEndpointId>1</AlertNewDevicesEndpointId>
  </DataProvider>
</IoTGateway>