| Required role: | Administrator | Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/SlotNoteApproval/{ID} | ||
|---|---|---|---|
| GET | /v1/SlotNoteApproval |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class SlotNoteApprovalRequest
{
public Integer ID = null;
public Boolean ApprovalStatus = null;
public Integer getId() { return ID; }
public SlotNoteApprovalRequest setId(Integer value) { this.ID = value; return this; }
public Boolean isApprovalStatus() { return ApprovalStatus; }
public SlotNoteApprovalRequest setApprovalStatus(Boolean value) { this.ApprovalStatus = 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; }
}
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; }
}
}
Java SlotNoteApprovalRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/SlotNoteApproval/{ID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ID":0,"ApprovalStatus":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"SlotNotes":[{"ID":0,"SlotDistrictID":0,"Note":"String","DateCreated":"0001-01-01T00:00:00.0000000","CreatedBy":0,"AgentName":"String","IsAdminNote":false,"ApprovalPending":false}]}