POST api/group/{id}/sendemail

To send an adhoc email to a group

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The group id

integer

Required

Body Parameters

Details of the email to send

Dezrez.Core.DataContracts.External.Api.Group.Command.SendEmail.SendGroupEmailDataContract
NameDescriptionTypeAdditional information
IsDraft

boolean

None.

FromAddress

string

None.

FromName

string

None.

ToContactItemIds

Collection of integer

None.

CCContactItemIds

Collection of integer

None.

CCFreeTextEmails

Collection of string

None.

BCCContactItemIds

Collection of integer

None.

Body

Dezrez.Core.DataContracts.External.Api.Group.Command.SendEmail.SendGroupEmailBodyDataContract

None.

Subject

string

None.

PreferredProviderId

integer

None.

BrandId

integer

None.

BranchId

integer

None.

FranchiseId

integer

None.

AttachmentIds

Collection of integer

None.

GDPRTransactional

boolean

None.

Request Formats

application/x-www-form-urlencoded

Sample:

Sample not available.

application/json, text/json

Sample:
{
  "IsDraft": true,
  "FromAddress": "sample string 2",
  "FromName": "sample string 3",
  "ToContactItemIds": [
    1,
    2
  ],
  "CCContactItemIds": [
    1,
    2
  ],
  "CCFreeTextEmails": [
    "sample string 1",
    "sample string 2"
  ],
  "BCCContactItemIds": [
    1,
    2
  ],
  "Body": {
    "Html": "sample string 1",
    "PlainText": "sample string 2"
  },
  "Subject": "sample string 4",
  "PreferredProviderId": 1,
  "BrandId": 1,
  "BranchId": 1,
  "FranchiseId": 1,
  "AttachmentIds": [
    1,
    2
  ],
  "GDPRTransactional": true
}

Response Information

Resource Description

Dezrez.Core.DataContracts.External.Api.Job.Query.Get.JobInvocationDetailsDataContract
NameDescriptionTypeAdditional information
SupportsCancellation

boolean

None.

ReportsProgress

boolean

None.

InitialStatusText

string

None.

JobReference

globally unique identifier

None.

Success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "SupportsCancellation": true,
  "ReportsProgress": true,
  "InitialStatusText": "sample string 3",
  "JobReference": "ad0d468f-6f66-4962-91de-c789a1396fc8",
  "Success": true
}