POST api/Message/CreateMessage

Create Message. If IsRandom is true - SendTime have to be null. If IsOwnMessage is true - RecipientPhone have to be null

Request Information

URI Parameters

None.

Body Parameters

CreateMessageDTO
NameDescriptionTypeAdditional information
Title

string

Required

String length: inclusive between 0 and 50

BodyText

string

None.

TrooxId

globally unique identifier

Required

IsOwnMessage

boolean

None.

RecipientPhone

string

Matching regular expression pattern: ^\+?[0-9]+$

String length: inclusive between 8 and 15

IsSecret

boolean

Required

Period

Reminder

Required

SendTime

date

None.

ContentId

globally unique identifier

None.

ContentType

MessageContentType

None.

Request Formats

application/json, text/json

Sample:
{
  "Title": "sample string 1",
  "BodyText": "sample string 2",
  "TrooxId": "627bff8e-2dc1-46fe-b8bf-3e90d1b41e62",
  "IsOwnMessage": true,
  "RecipientPhone": "sample string 5",
  "IsSecret": true,
  "Period": 0,
  "SendTime": "2025-12-06T06:02:29.8416677+02:00",
  "ContentId": "6f26ba5c-5260-417a-89f4-35e31582c847",
  "ContentType": 0
}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.