POST api/UserRolesInt

Request Information

URI Parameters

None.

Body Parameters

UserRoleInt
NameDescriptionTypeAdditional information
UserId

integer

None.

User

UserInt

None.

RoleId

integer

None.

Role

RoleInt

None.

Request Formats

application/json, text/json

Sample:
{
  "userId": 1,
  "user": {
    "$id": "2",
    "id": 1,
    "email": "sample string 2",
    "emailConfirmed": true,
    "passwordHash": "sample string 4",
    "securityStamp": "sample string 5",
    "phoneNumber": "sample string 6",
    "phoneNumberConfirmed": true,
    "twoFactorEnabled": true,
    "lockoutEndDateUtc": "2024-05-02T18:25:17.183Z",
    "lockoutEnabled": true,
    "accessFailedCount": 10,
    "userName": "sample string 11",
    "firstName": "sample string 12",
    "lastName": "sample string 13",
    "firstLastName": "sample string 12 sample string 13",
    "lastFirstName": "sample string 13 sample string 12",
    "claims": [
      {
        "$id": "3",
        "id": 1,
        "userId": 2,
        "user": {
          "$ref": "2"
        },
        "claimType": "sample string 3",
        "claimValue": "sample string 4"
      },
      {
        "$ref": "3"
      }
    ],
    "logins": [
      {
        "$id": "4",
        "loginProvider": "sample string 1",
        "providerKey": "sample string 2",
        "userId": 3,
        "user": {
          "$ref": "2"
        }
      },
      {
        "$ref": "4"
      }
    ],
    "roles": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ],
    "createdAt": "2024-05-02T18:25:17.198Z",
    "createdBy": "sample string 15",
    "updatedAt": "2024-05-02T18:25:17.198Z",
    "updatedBy": "sample string 17"
  },
  "roleId": 2,
  "role": {
    "$id": "5",
    "id": 1,
    "name": "sample string 2",
    "users": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ]
  }
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

UserRoleInt
NameDescriptionTypeAdditional information
UserId

integer

None.

User

UserInt

None.

RoleId

integer

None.

Role

RoleInt

None.

Response Formats

application/json, text/json

Sample:
{
  "userId": 1,
  "user": {
    "$id": "2",
    "id": 1,
    "email": "sample string 2",
    "emailConfirmed": true,
    "passwordHash": "sample string 4",
    "securityStamp": "sample string 5",
    "phoneNumber": "sample string 6",
    "phoneNumberConfirmed": true,
    "twoFactorEnabled": true,
    "lockoutEndDateUtc": "2024-05-02T18:25:17.23Z",
    "lockoutEnabled": true,
    "accessFailedCount": 10,
    "userName": "sample string 11",
    "firstName": "sample string 12",
    "lastName": "sample string 13",
    "firstLastName": "sample string 12 sample string 13",
    "lastFirstName": "sample string 13 sample string 12",
    "claims": [
      {
        "$id": "3",
        "id": 1,
        "userId": 2,
        "user": {
          "$ref": "2"
        },
        "claimType": "sample string 3",
        "claimValue": "sample string 4"
      },
      {
        "$ref": "3"
      }
    ],
    "logins": [
      {
        "$id": "4",
        "loginProvider": "sample string 1",
        "providerKey": "sample string 2",
        "userId": 3,
        "user": {
          "$ref": "2"
        }
      },
      {
        "$ref": "4"
      }
    ],
    "roles": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ],
    "createdAt": "2024-05-02T18:25:17.23Z",
    "createdBy": "sample string 15",
    "updatedAt": "2024-05-02T18:25:17.23Z",
    "updatedBy": "sample string 17"
  },
  "roleId": 2,
  "role": {
    "$id": "5",
    "id": 1,
    "name": "sample string 2",
    "users": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ]
  }
}