| Requires any of the roles: | Agent, Administrator, Agent, Administrator |
| POST,OPTIONS | /v1/SlotNote | ||
|---|---|---|---|
| GET | /v1/SlotNote/GetAllBySlotDistrictID/{SlotDistrictID} |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class SlotNoteRequest
{
public Integer SlotDistrictID = null;
public SlotNote SlotNote = null;
public Integer getSlotDistrictID() { return SlotDistrictID; }
public SlotNoteRequest setSlotDistrictID(Integer value) { this.SlotDistrictID = value; return this; }
public SlotNote getSlotNote() { return SlotNote; }
public SlotNoteRequest setSlotNote(SlotNote value) { this.SlotNote = value; return this; }
}
public static class SlotNote
{
public Integer ID = null;
public Integer SlotDistrictID = null;
public String Note = null;
public Date DateCreated = null;
public Integer CreatedBy = null;
public String AgentName = null;
public Boolean IsAdminNote = null;
public Boolean ApprovalPending = null;
public Integer getId() { return ID; }
public SlotNote setId(Integer value) { this.ID = value; return this; }
public Integer getSlotDistrictID() { return SlotDistrictID; }
public SlotNote setSlotDistrictID(Integer value) { this.SlotDistrictID = value; return this; }
public String getNote() { return Note; }
public SlotNote setNote(String value) { this.Note = value; return this; }
public Date getDateCreated() { return DateCreated; }
public SlotNote setDateCreated(Date value) { this.DateCreated = value; return this; }
public Integer getCreatedBy() { return CreatedBy; }
public SlotNote setCreatedBy(Integer value) { this.CreatedBy = value; return this; }
public String getAgentName() { return AgentName; }
public SlotNote setAgentName(String value) { this.AgentName = value; return this; }
public Boolean getIsAdminNote() { return IsAdminNote; }
public SlotNote setIsAdminNote(Boolean value) { this.IsAdminNote = value; return this; }
public Boolean isApprovalPending() { return ApprovalPending; }
public SlotNote setApprovalPending(Boolean value) { this.ApprovalPending = value; return this; }
}
public static class SlotNoteResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<SlotNote> SlotNotes = new ArrayList<SlotNote>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public SlotNoteResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<SlotNote> getSlotNotes() { return SlotNotes; }
public SlotNoteResponse setSlotNotes(ArrayList<SlotNote> value) { this.SlotNotes = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/SlotNote HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SlotNoteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<SlotDistrictID>0</SlotDistrictID>
<SlotNote>
<AgentName>String</AgentName>
<ApprovalPending>false</ApprovalPending>
<CreatedBy>0</CreatedBy>
<DateCreated>0001-01-01T00:00:00</DateCreated>
<ID>0</ID>
<IsAdminNote>false</IsAdminNote>
<Note>String</Note>
<SlotDistrictID>0</SlotDistrictID>
</SlotNote>
</SlotNoteRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SlotNoteResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<SlotNotes>
<SlotNote>
<AgentName>String</AgentName>
<ApprovalPending>false</ApprovalPending>
<CreatedBy>0</CreatedBy>
<DateCreated>0001-01-01T00:00:00</DateCreated>
<ID>0</ID>
<IsAdminNote>false</IsAdminNote>
<Note>String</Note>
<SlotDistrictID>0</SlotDistrictID>
</SlotNote>
</SlotNotes>
</SlotNoteResponse>