| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET,DELETE,OPTIONS | /v1/Reminder/{ReminderId} | ||
|---|---|---|---|
| POST,PUT,OPTIONS | /v1/Reminder |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ReminderRequest
{
public ArrayList<ReminderExtended> Reminder = new ArrayList<ReminderExtended>();
public UUID ReminderId = null;
public Boolean RemindOwner = null;
public String AgentName = null;
public Boolean CCAVP = null;
public Boolean IsAdminReminder = null;
public Integer AdminAgentId = null;
public ArrayList<ReminderExtended> getReminder() { return Reminder; }
public ReminderRequest setReminder(ArrayList<ReminderExtended> value) { this.Reminder = value; return this; }
public UUID getReminderId() { return ReminderId; }
public ReminderRequest setReminderId(UUID value) { this.ReminderId = value; return this; }
public Boolean isRemindOwner() { return RemindOwner; }
public ReminderRequest setRemindOwner(Boolean value) { this.RemindOwner = value; return this; }
public String getAgentName() { return AgentName; }
public ReminderRequest setAgentName(String value) { this.AgentName = value; return this; }
public Boolean isCcavp() { return CCAVP; }
public ReminderRequest setCcavp(Boolean value) { this.CCAVP = value; return this; }
public Boolean getIsAdminReminder() { return IsAdminReminder; }
public ReminderRequest setIsAdminReminder(Boolean value) { this.IsAdminReminder = value; return this; }
public Integer getAdminAgentId() { return AdminAgentId; }
public ReminderRequest setAdminAgentId(Integer value) { this.AdminAgentId = value; return this; }
}
public static class ReminderExtended extends Reminder
{
public String AgentName = null;
public String RecordAgentName = null;
public Integer RecordAgentID = null;
public Boolean IsAdmin = null;
public Integer AgentID = null;
public String getAgentName() { return AgentName; }
public ReminderExtended setAgentName(String value) { this.AgentName = value; return this; }
public String getRecordAgentName() { return RecordAgentName; }
public ReminderExtended setRecordAgentName(String value) { this.RecordAgentName = value; return this; }
public Integer getRecordAgentID() { return RecordAgentID; }
public ReminderExtended setRecordAgentID(Integer value) { this.RecordAgentID = value; return this; }
public Boolean getIsAdmin() { return IsAdmin; }
public ReminderExtended setIsAdmin(Boolean value) { this.IsAdmin = value; return this; }
public Integer getAgentID() { return AgentID; }
public ReminderExtended setAgentID(Integer value) { this.AgentID = value; return this; }
}
public static class Reminder
{
public UUID ReminderId = null;
public String TableName = null;
public String FieldName = null;
public Integer RecordId = null;
public Date ReminderDate = null;
public String ReminderNote = null;
public Date CreatedDate = null;
public String CreatedBy = null;
public Date CompletedDate = null;
public UUID getReminderId() { return ReminderId; }
public Reminder setReminderId(UUID value) { this.ReminderId = value; return this; }
public String getTableName() { return TableName; }
public Reminder setTableName(String value) { this.TableName = value; return this; }
public String getFieldName() { return FieldName; }
public Reminder setFieldName(String value) { this.FieldName = value; return this; }
public Integer getRecordId() { return RecordId; }
public Reminder setRecordId(Integer value) { this.RecordId = value; return this; }
public Date getReminderDate() { return ReminderDate; }
public Reminder setReminderDate(Date value) { this.ReminderDate = value; return this; }
public String getReminderNote() { return ReminderNote; }
public Reminder setReminderNote(String value) { this.ReminderNote = value; return this; }
public Date getCreatedDate() { return CreatedDate; }
public Reminder setCreatedDate(Date value) { this.CreatedDate = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public Reminder setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Date getCompletedDate() { return CompletedDate; }
public Reminder setCompletedDate(Date value) { this.CompletedDate = value; return this; }
}
public static class ReminderResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<ReminderExtended> Reminder = new ArrayList<ReminderExtended>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ReminderResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<ReminderExtended> getReminder() { return Reminder; }
public ReminderResponse setReminder(ArrayList<ReminderExtended> value) { this.Reminder = value; return this; }
}
}
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/Reminder HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Reminder:
[
{
AgentName: String,
RecordAgentName: String,
RecordAgentID: 0,
IsAdmin: False,
AgentID: 0,
ReminderId: 00000000000000000000000000000000,
TableName: String,
FieldName: String,
RecordId: 0,
ReminderDate: 0001-01-01,
ReminderNote: String,
CreatedDate: 0001-01-01,
CreatedBy: String,
CompletedDate: 0001-01-01
}
],
ReminderId: 00000000000000000000000000000000,
RemindOwner: False,
AgentName: String,
CCAVP: False,
IsAdminReminder: False,
AdminAgentId: 0
}
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
}
},
Reminder:
[
{
AgentName: String,
RecordAgentName: String,
RecordAgentID: 0,
IsAdmin: False,
AgentID: 0,
ReminderId: 00000000000000000000000000000000,
TableName: String,
FieldName: String,
RecordId: 0,
ReminderDate: 0001-01-01,
ReminderNote: String,
CreatedDate: 0001-01-01,
CreatedBy: String,
CompletedDate: 0001-01-01
}
]
}