POST api/UserDevices/PostUserDevice

Request Information

URI Parameters

None.

Body Parameters

UserDevice
NameDescriptionTypeAdditional information
UserDeviceId

integer

None.

UserId

string

None.

DeviceToken

string

None.

Push

boolean

None.

CreatedDate

date

None.

ModifiedDate

date

None.

AspNetUser

AspNetUser

None.

Request Formats

application/json, text/json

Sample:
{
  "UserDeviceId": 1,
  "UserId": "sample string 2",
  "DeviceToken": "sample string 3",
  "Push": true,
  "CreatedDate": "2018-11-12T07:12:28.8740281+00:00",
  "ModifiedDate": "2018-11-12T07:12:28.8740281+00:00",
  "AspNetUser": {
    "$id": "2",
    "Id": "sample string 1",
    "Email": "sample string 2",
    "EmailConfirmed": true,
    "PasswordHash": "sample string 4",
    "SecurityStamp": "sample string 5",
    "PhoneNumber": "sample string 6",
    "PhoneNumberConfirmed": true,
    "TwoFactorEnabled": true,
    "LockoutEndDateUtc": "2018-11-12T07:12:28.8740281+00:00",
    "LockoutEnabled": true,
    "AccessFailedCount": 10,
    "UserName": "sample string 11",
    "AspNetUserClaims": {
      "$id": "3",
      "$values": [
        {
          "$id": "4",
          "Id": 1,
          "UserId": "sample string 2",
          "ClaimType": "sample string 3",
          "ClaimValue": "sample string 4",
          "AspNetUser": {
            "$ref": "2"
          }
        },
        {
          "$ref": "4"
        }
      ]
    },
    "AspNetUserLogins": {
      "$id": "5",
      "$values": [
        {
          "$id": "6",
          "LoginProvider": "sample string 1",
          "ProviderKey": "sample string 2",
          "UserId": "sample string 3",
          "AspNetUser": {
            "$ref": "2"
          }
        },
        {
          "$ref": "6"
        }
      ]
    },
    "UserDevices": {
      "$id": "7",
      "$values": [
        {
          "$ref": "1"
        },
        {
          "$ref": "1"
        }
      ]
    },
    "AspNetRoles": {
      "$id": "8",
      "$values": [
        {
          "$id": "9",
          "Id": "sample string 1",
          "Name": "sample string 2",
          "AspNetUsers": {
            "$id": "10",
            "$values": [
              {
                "$ref": "2"
              },
              {
                "$ref": "2"
              }
            ]
          }
        },
        {
          "$ref": "9"
        }
      ]
    }
  }
}

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

UserDevice
NameDescriptionTypeAdditional information
UserDeviceId

integer

None.

UserId

string

None.

DeviceToken

string

None.

Push

boolean

None.

CreatedDate

date

None.

ModifiedDate

date

None.

AspNetUser

AspNetUser

None.

Response Formats

application/json, text/json

Sample:
{
  "UserDeviceId": 1,
  "UserId": "sample string 2",
  "DeviceToken": "sample string 3",
  "Push": true,
  "CreatedDate": "2018-11-12T07:12:29.0179497+00:00",
  "ModifiedDate": "2018-11-12T07:12:29.0179497+00:00",
  "AspNetUser": {
    "$id": "2",
    "Id": "sample string 1",
    "Email": "sample string 2",
    "EmailConfirmed": true,
    "PasswordHash": "sample string 4",
    "SecurityStamp": "sample string 5",
    "PhoneNumber": "sample string 6",
    "PhoneNumberConfirmed": true,
    "TwoFactorEnabled": true,
    "LockoutEndDateUtc": "2018-11-12T07:12:29.0179497+00:00",
    "LockoutEnabled": true,
    "AccessFailedCount": 10,
    "UserName": "sample string 11",
    "AspNetUserClaims": {
      "$id": "3",
      "$values": [
        {
          "$id": "4",
          "Id": 1,
          "UserId": "sample string 2",
          "ClaimType": "sample string 3",
          "ClaimValue": "sample string 4",
          "AspNetUser": {
            "$ref": "2"
          }
        },
        {
          "$ref": "4"
        }
      ]
    },
    "AspNetUserLogins": {
      "$id": "5",
      "$values": [
        {
          "$id": "6",
          "LoginProvider": "sample string 1",
          "ProviderKey": "sample string 2",
          "UserId": "sample string 3",
          "AspNetUser": {
            "$ref": "2"
          }
        },
        {
          "$ref": "6"
        }
      ]
    },
    "UserDevices": {
      "$id": "7",
      "$values": [
        {
          "$ref": "1"
        },
        {
          "$ref": "1"
        }
      ]
    },
    "AspNetRoles": {
      "$id": "8",
      "$values": [
        {
          "$id": "9",
          "Id": "sample string 1",
          "Name": "sample string 2",
          "AspNetUsers": {
            "$id": "10",
            "$values": [
              {
                "$ref": "2"
              },
              {
                "$ref": "2"
              }
            ]
          }
        },
        {
          "$ref": "9"
        }
      ]
    }
  }
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.