| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/MassCommunicationContact |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class MassCommunicationContactRequest
{
public String Subject = null;
public String Message = null;
public ArrayList<String> Recipients = new ArrayList<String>();
public ArrayList<String> Locations = new ArrayList<String>();
public Boolean EmailMissingNumbers = null;
public Boolean EmailAll = null;
public Boolean SMSAll = null;
public String ContactCategories = null;
public String getSubject() { return Subject; }
public MassCommunicationContactRequest setSubject(String value) { this.Subject = value; return this; }
public String getMessage() { return Message; }
public MassCommunicationContactRequest setMessage(String value) { this.Message = value; return this; }
public ArrayList<String> getRecipients() { return Recipients; }
public MassCommunicationContactRequest setRecipients(ArrayList<String> value) { this.Recipients = value; return this; }
public ArrayList<String> getLocations() { return Locations; }
public MassCommunicationContactRequest setLocations(ArrayList<String> value) { this.Locations = value; return this; }
public Boolean isEmailMissingNumbers() { return EmailMissingNumbers; }
public MassCommunicationContactRequest setEmailMissingNumbers(Boolean value) { this.EmailMissingNumbers = value; return this; }
public Boolean isEmailAll() { return EmailAll; }
public MassCommunicationContactRequest setEmailAll(Boolean value) { this.EmailAll = value; return this; }
public Boolean isSmsAll() { return SMSAll; }
public MassCommunicationContactRequest setSmsAll(Boolean value) { this.SMSAll = value; return this; }
public String getContactCategories() { return ContactCategories; }
public MassCommunicationContactRequest setContactCategories(String value) { this.ContactCategories = value; return this; }
}
public static class MassCommunicationResponse
{
public ResponseStatus ResponseStatus = null;
public Boolean Success = null;
public Integer Recipients = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public MassCommunicationResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public Boolean isSuccess() { return Success; }
public MassCommunicationResponse setSuccess(Boolean value) { this.Success = value; return this; }
public Integer getRecipients() { return Recipients; }
public MassCommunicationResponse setRecipients(Integer value) { this.Recipients = value; return this; }
}
}
Java MassCommunicationContactRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/MassCommunicationContact HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Subject: String,
Message: String,
Recipients:
[
String
],
Locations:
[
String
],
EmailMissingNumbers: False,
EmailAll: False,
SMSAll: False,
ContactCategories: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Success: False,
Recipients: 0
}