POST v1/emails

Request Information

URI Parameters

None.

Body Parameters

EmailRequestDto
NameDescriptionTypeAdditional information
Text

string

None.

ToUserId

globally unique identifier

None.

Subject

string

None.

Attachments

Collection of MessageAttachmentDto

None.

IsDraft

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "text": "sample string 1",
  "toUserId": "ea97265e-2e79-489b-ae7f-bc80fe212688",
  "subject": "sample string 3",
  "attachments": [
    {
      "chatMessageId": "6f75b2c5-5e2e-42cc-9cb3-f5e3ef2e2ab7",
      "dataUrl": "sample string 2",
      "dataSize": 1,
      "thumbnailUrl": "sample string 3",
      "fileName": "sample string 4"
    },
    {
      "chatMessageId": "6f75b2c5-5e2e-42cc-9cb3-f5e3ef2e2ab7",
      "dataUrl": "sample string 2",
      "dataSize": 1,
      "thumbnailUrl": "sample string 3",
      "fileName": "sample string 4"
    }
  ],
  "isDraft": true
}

text/html, multipart/form-data

Sample:
{"text":"sample string 1","toUserId":"ea97265e-2e79-489b-ae7f-bc80fe212688","subject":"sample string 3","attachments":[{"chatMessageId":"6f75b2c5-5e2e-42cc-9cb3-f5e3ef2e2ab7","dataUrl":"sample string 2","dataSize":1,"thumbnailUrl":"sample string 3","fileName":"sample string 4"},{"chatMessageId":"6f75b2c5-5e2e-42cc-9cb3-f5e3ef2e2ab7","dataUrl":"sample string 2","dataSize":1,"thumbnailUrl":"sample string 3","fileName":"sample string 4"}],"isDraft":true}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, multipart/form-data

Sample:

Sample not available.