PUT api/Mailbox?folderName={folderName}&messageId={messageId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
folderName

string

Required

messageId

integer

Required

Body Parameters

MailboxViewModel
NameDescriptionTypeAdditional information
Receivers

Collection of MailboxReceiverViewModel

None.

Message

string

None.

Id

integer

None.

Idhex

string

None.

SenderId

string

None.

Sender

UserSearchResultViewModel

None.

CreatedOn

date

None.

Subject

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Receivers": [
    {
      "Id": 1,
      "UserId": "sample string 2",
      "User": {
        "UserId": "sample string 1",
        "FirstName": "sample string 2",
        "LastName": "sample string 3",
        "ProfilePicture": "sample string 4"
      },
      "Favorite": true,
      "FolderId": 4,
      "StatusId": 5
    },
    {
      "Id": 1,
      "UserId": "sample string 2",
      "User": {
        "UserId": "sample string 1",
        "FirstName": "sample string 2",
        "LastName": "sample string 3",
        "ProfilePicture": "sample string 4"
      },
      "Favorite": true,
      "FolderId": 4,
      "StatusId": 5
    }
  ],
  "Message": "sample string 1",
  "Id": 2,
  "Idhex": "sample string 3",
  "SenderId": "sample string 4",
  "Sender": {
    "UserId": "sample string 1",
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "ProfilePicture": "sample string 4"
  },
  "CreatedOn": "2020-08-04T10:38:28.6490144-04:00",
  "Subject": "sample string 6"
}

application/xml, text/xml

Sample:
<MailboxViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.Alumni">
  <CreatedOn>2020-08-04T10:38:28.6490144-04:00</CreatedOn>
  <Id>2</Id>
  <Idhex>sample string 3</Idhex>
  <Sender xmlns:d2p1="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.Users">
    <d2p1:FirstName>sample string 2</d2p1:FirstName>
    <d2p1:LastName>sample string 3</d2p1:LastName>
    <d2p1:ProfilePicture>sample string 4</d2p1:ProfilePicture>
    <d2p1:UserId>sample string 1</d2p1:UserId>
  </Sender>
  <SenderId>sample string 4</SenderId>
  <Subject>sample string 6</Subject>
  <Message>sample string 1</Message>
  <Receivers>
    <MailboxReceiverViewModel>
      <Favorite>true</Favorite>
      <FolderId>4</FolderId>
      <Id>1</Id>
      <StatusId>5</StatusId>
      <User xmlns:d4p1="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.Users">
        <d4p1:FirstName>sample string 2</d4p1:FirstName>
        <d4p1:LastName>sample string 3</d4p1:LastName>
        <d4p1:ProfilePicture>sample string 4</d4p1:ProfilePicture>
        <d4p1:UserId>sample string 1</d4p1:UserId>
      </User>
      <UserId>sample string 2</UserId>
    </MailboxReceiverViewModel>
    <MailboxReceiverViewModel>
      <Favorite>true</Favorite>
      <FolderId>4</FolderId>
      <Id>1</Id>
      <StatusId>5</StatusId>
      <User xmlns:d4p1="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.Users">
        <d4p1:FirstName>sample string 2</d4p1:FirstName>
        <d4p1:LastName>sample string 3</d4p1:LastName>
        <d4p1:ProfilePicture>sample string 4</d4p1:ProfilePicture>
        <d4p1:UserId>sample string 1</d4p1:UserId>
      </User>
      <UserId>sample string 2</UserId>
    </MailboxReceiverViewModel>
  </Receivers>
</MailboxViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.