POST api/Users

Request Information

URI Parameters

None.

Body Parameters

User
NameDescriptionTypeAdditional information
UserId

integer

None.

DriverId

string

None.

Login

string

None.

FirstName

string

None.

LastName

string

None.

Company

Company

None.

Creator

User

None.

Calendar

Calendar

None.

EmailAddress

string

None.

PhoneNumber

string

None.

TrackingObjectGroups

Collection of TrackingObjectGroup

None.

Role

UserRole

None.

IsActive

boolean

None.

UserGroup

UserGroup

None.

Messages

Collection of Message

None.

NotificationType

NotificationType

None.

NotificationSound

PredefinedSound

None.

TrackingObject

TrackingObject

None.

Metadata

UserMetadata

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "DriverId": "sample string 2",
  "Login": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "Company": {
    "$id": "2",
    "CompanyId": 1,
    "CompanyName": "sample string 2",
    "CompanyUrl": "sample string 3",
    "LogoUrl": "sample string 4",
    "IsActive": true
  },
  "Creator": {
    "$ref": "1"
  },
  "Calendar": {
    "$id": "3",
    "CalendarId": 1,
    "CalendarName": "sample string 2"
  },
  "EmailAddress": "sample string 7",
  "PhoneNumber": "sample string 8",
  "TrackingObjectGroups": [
    {
      "$id": "4",
      "TrackingObjectGroupId": 1,
      "TrackingObjectGroupName": "sample string 2",
      "Description": "sample string 3",
      "Company": {
        "$ref": "2"
      },
      "Users": [
        {
          "$ref": "1"
        },
        {
          "$ref": "1"
        }
      ],
      "TrackingObjects": [
        {
          "$id": "5",
          "TrackingObjectId": 1,
          "TrackingObjectName": "sample string 2",
          "Company": {
            "$ref": "2"
          },
          "Device": {
            "$id": "6",
            "DeviceId": 1,
            "SenderId": "sample string 2",
            "InstalledSIMCard": {
              "$id": "7",
              "SIMCardId": 1,
              "SerialNumber": "sample string 2",
              "AddressIP": "sample string 3",
              "PIN": "sample string 4",
              "PUK": "sample string 5",
              "PhoneNumber": "sample string 6",
              "ActivationDate": "2026-02-02T19:55:12.7088129+01:00",
              "ExpirationDate": "2026-02-02T19:55:12.7088129+01:00",
              "Device": {
                "$ref": "6"
              }
            },
            "Model": "sample string 3",
            "SerialNumber": "sample string 5",
            "IsActive": true,
            "CAN": true,
            "DeviceFeatures": 1,
            "DeviceType": 0,
            "TrackingObject": {
              "$ref": "5"
            }
          },
          "Driver": {
            "$ref": "1"
          },
          "TrackingObjectGroups": [
            {
              "$ref": "4"
            },
            {
              "$ref": "4"
            }
          ],
          "IsActive": true,
          "Note": "sample string 4",
          "Tank": {
            "$id": "8",
            "TankId": 1,
            "TankName": "sample string 2",
            "Capacity": 3,
            "Ratio": 64,
            "Threshold": 5.1,
            "Lag": 6,
            "Measures": [
              {
                "$id": "9",
                "MeasureId": 1,
                "Input": 2.1,
                "Output": 3.1
              },
              {
                "$ref": "9"
              }
            ],
            "Inputs": [
              {
                "$id": "10",
                "TankInputId": 1,
                "AnalogInput": 2,
                "Coefficient": 3.1,
                "InputIndex": 1
              },
              {
                "$ref": "10"
              }
            ],
            "ToleranceDefueling": 7.1,
            "ToleranceFuelLevel": 8.1,
            "InputIndex": 9,
            "IsIgnoreEngineStatus": true
          },
          "TankDate": "2026-02-02T19:55:12.7088129+01:00",
          "RegistrationNumber": "sample string 5",
          "MakeModel": "sample string 7 sample string 6",
          "Model": "sample string 6",
          "Manufacturer": "sample string 7",
          "InitialOdometerValue": 1,
          "ReportsOdometer": true,
          "SpeedLimit": 1,
          "ReferenceFuelConsumption": 1.1,
          "MaxRPM": 1,
          "VIN": "sample string 9",
          "TrackingObjectType": 0,
          "FuelType": 0,
          "Sensors": [
            {
              "$id": "11",
              "SensorId": 1,
              "SensorName": "sample string 2",
              "SensorType": 0,
              "SensorOutputType": 0,
              "FunctionCode": "sample string 3",
              "Order": 64,
              "Mask": "sample string 5",
              "Visible": true,
              "Value": {
                "$id": "12"
              }
            },
            {
              "$ref": "11"
            }
          ],
          "HasLocationData": true,
          "Logbook": true
        },
        {
          "$ref": "5"
        }
      ],
      "GroupSenderId": "sample string 4"
    },
    {
      "$ref": "4"
    }
  ],
  "Role": 1,
  "IsActive": true,
  "UserGroup": {
    "$id": "13",
    "UserGroupId": 1,
    "UserGroupName": "sample string 2",
    "Users": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ]
  },
  "Messages": [
    {
      "$id": "14",
      "MessageId": 1,
      "IsRead": true,
      "Content": "sample string 3",
      "Location": {
        "$id": "15",
        "Latitude": 1.1,
        "Longitude": 2.1,
        "AreaName": "sample string 2, sample string 2"
      },
      "Recipient": {
        "$ref": "1"
      },
      "IsHighPriority": true,
      "SentDate": "2026-02-02T19:55:12.7088129+01:00"
    },
    {
      "$ref": "14"
    }
  ],
  "NotificationType": 1,
  "NotificationSound": 0,
  "TrackingObject": {
    "$ref": "5"
  },
  "Metadata": {
    "$id": "16",
    "LoginSuccessful": "2026-02-02T19:55:12.7088129+01:00",
    "LoginFailed": "2026-02-02T19:55:12.7088129+01:00"
  }
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>