| Requires any of the roles: | Agent, Administrator, Agent, Administrator |
| GET,POST,OPTIONS | /v1/customercheckins/{Id}/notes |
|---|
export class CustomerNote
{
public NoteId: number;
public Scope: string;
public Text: string;
public IsPriority: boolean;
public CreatedByUserId?: string;
public CreatedByName: string;
public CreatedAt?: string;
public DoneAt?: string;
public IsCarry: boolean;
public ShownAt?: string;
public constructor(init?: Partial<CustomerNote>) { (Object as any).assign(this, init); }
}
export class CustomerNoteResponse
{
public ResponseStatus: ResponseStatus;
public Notes: CustomerNote[] = [];
public Carry: CustomerNote[] = [];
public CanPriority: boolean;
public Note: CustomerNote;
public constructor(init?: Partial<CustomerNoteResponse>) { (Object as any).assign(this, init); }
}
export class CustomerNotesRequest
{
public Id: string;
public Text: string;
public Scope: string;
public IsPriority: boolean;
public constructor(init?: Partial<CustomerNotesRequest>) { (Object as any).assign(this, init); }
}
TypeScript CustomerNotesRequest 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/customercheckins/{Id}/notes HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Id":"00000000000000000000000000000000","Text":"String","Scope":"String","IsPriority":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"}},"Notes":[{"NoteId":0,"Scope":"String","Text":"String","IsPriority":false,"CreatedByUserId":"00000000000000000000000000000000","CreatedByName":"String","CreatedAt":"0001-01-01T00:00:00.0000000","DoneAt":"0001-01-01T00:00:00.0000000","IsCarry":false,"ShownAt":"0001-01-01T00:00:00.0000000"}],"Carry":[{"NoteId":0,"Scope":"String","Text":"String","IsPriority":false,"CreatedByUserId":"00000000000000000000000000000000","CreatedByName":"String","CreatedAt":"0001-01-01T00:00:00.0000000","DoneAt":"0001-01-01T00:00:00.0000000","IsCarry":false,"ShownAt":"0001-01-01T00:00:00.0000000"}],"CanPriority":false,"Note":{"NoteId":0,"Scope":"String","Text":"String","IsPriority":false,"CreatedByUserId":"00000000000000000000000000000000","CreatedByName":"String","CreatedAt":"0001-01-01T00:00:00.0000000","DoneAt":"0001-01-01T00:00:00.0000000","IsCarry":false,"ShownAt":"0001-01-01T00:00:00.0000000"}}