POST api/data/uploadanonymous

Uploads anonymous message.

Request Information

URI Parameters

None.

Body Parameters

AnonymousMessageUploadModel
NameDescriptionTypeAdditional information
Recipient_OrganizationNumber

Recipient's organization ID.

string

String length: inclusive between 0 and 32

Recipient_RegisteredMailAddress

string

None.

MailNotificationMessage

MailNotificationMessage

None.

Matter

Subject of the data.

string

String length: inclusive between 0 and 255

ContentType

MIME content type.

string

String length: inclusive between 0 and 255

FileName

Original file name.

string

String length: inclusive between 0 and 255

ReferenceNumber

string

String length: inclusive between 0 and 50

Data

Raw data sent by Sender.

Collection of byte

None.

SenderMessageKey

string

None.

SkipAnonymousSubjectMessageMailNotification

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Recipient_OrganizationNumber": "sample string 1",
  "Recipient_RegisteredMailAddress": "sample string 2",
  "MailNotificationMessage": {
    "From": "sample string 1",
    "To": [
      "sample string 1",
      "sample string 2"
    ],
    "CC": [
      "sample string 1",
      "sample string 2"
    ],
    "Bcc": [
      "sample string 1",
      "sample string 2"
    ],
    "Subject": "sample string 2",
    "Body": "sample string 3",
    "IsBodyHtml": true,
    "Attachments": [
      {
        "Content": "QEA=",
        "FileName": "sample string 1",
        "CreationDate": "2024-05-05T10:07:29.6060679+02:00",
        "ModificationDate": "2024-05-05T10:07:29.6060679+02:00"
      },
      {
        "Content": "QEA=",
        "FileName": "sample string 1",
        "CreationDate": "2024-05-05T10:07:29.6060679+02:00",
        "ModificationDate": "2024-05-05T10:07:29.6060679+02:00"
      }
    ],
    "BoxNotification_RefId": "3681cedc-1726-4eba-b757-66b72068649f"
  },
  "Matter": "sample string 3",
  "ContentType": "sample string 4",
  "FileName": "sample string 5",
  "ReferenceNumber": "sample string 6",
  "Data": "QEA=",
  "SenderMessageKey": "sample string 7",
  "SkipAnonymousSubjectMessageMailNotification": true
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AnonymousMessageUploadModel'.

Response Information

Resource Description

RefId of posted message.

globally unique identifier

Response Formats

application/json, text/json

Sample:
"78df46bb-327f-4974-ac0d-ce8283e0279c"