POST api/MessageReceivers

Adds new message receiver

Request Information

URI Parameters

None.

Body Parameters

MessageReceiver
NameDescriptionTypeAdditional information
MessageReceiverId

integer

None.

UserId

integer

Required

User

UserInt

None.

MessageId

integer

Required

Message

Message

None.

CreatedAt

date

None.

CreatedBy

string

Max length: 256

UpdatedAt

date

None.

UpdatedBy

string

Max length: 256

Request Formats

application/json, text/json

Sample:
{
  "messageReceiverId": 1,
  "userId": 2,
  "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-02T23:23:39.22Z",
    "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": [
      {
        "$id": "5",
        "userId": 1,
        "user": {
          "$ref": "2"
        },
        "roleId": 2,
        "role": {
          "$id": "6",
          "id": 1,
          "name": "sample string 2",
          "users": [
            {
              "$ref": "5"
            },
            {
              "$ref": "5"
            }
          ]
        }
      },
      {
        "$ref": "5"
      }
    ],
    "createdAt": "2024-05-02T23:23:39.22Z",
    "createdBy": "sample string 15",
    "updatedAt": "2024-05-02T23:23:39.22Z",
    "updatedBy": "sample string 17"
  },
  "messageId": 3,
  "message": {
    "$id": "7",
    "messageId": 1,
    "messageThreadId": 2,
    "messageThread": {
      "$id": "8",
      "messageThreadId": 1,
      "authorId": 2,
      "author": {
        "$ref": "2"
      },
      "title": "sample string 3",
      "messageThreadReceivers": [
        {
          "$id": "9",
          "messageThreadReceiverId": 1,
          "userId": 2,
          "user": {
            "$ref": "2"
          },
          "messageThreadId": 3,
          "messageThread": {
            "$ref": "8"
          },
          "createdAt": "2024-05-02T23:23:39.22Z",
          "createdBy": "sample string 5",
          "updatedAt": "2024-05-02T23:23:39.22Z",
          "updatedBy": "sample string 7"
        },
        {
          "$ref": "9"
        }
      ],
      "createdAt": "2024-05-02T23:23:39.22Z",
      "createdBy": "sample string 5",
      "updatedAt": "2024-05-02T23:23:39.22Z",
      "updatedBy": "sample string 7"
    },
    "authorId": 3,
    "author": {
      "$ref": "2"
    },
    "text": "sample string 4",
    "status": 0,
    "messageReceivers": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ],
    "createdAt": "2024-05-02T23:23:39.22Z",
    "createdBy": "sample string 6",
    "updatedAt": "2024-05-02T23:23:39.22Z",
    "updatedBy": "sample string 8"
  },
  "createdAt": "2024-05-02T23:23:39.22Z",
  "createdBy": "sample string 5",
  "updatedAt": "2024-05-02T23:23:39.22Z",
  "updatedBy": "sample string 7"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.