Trendsic Platform Service

<back to all web services

CoverageSelfDayNotePostRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/coverage/self/daynotes

export class CoverageSelfDayNote
{
    public RosterDayNoteID: number;
    public AuthorName: string;
    public Body: string;
    public TimeText: string;
    public Mine: boolean;

    public constructor(init?: Partial<CoverageSelfDayNote>) { (Object as any).assign(this, init); }
}

export class CoverageSelfDayNotesResponse
{
    public ResponseStatus: ResponseStatus;
    public TodayLabel: string;
    public Today: CoverageSelfDayNote[] = [];
    public PreviousLabel: string;
    public Previous: CoverageSelfDayNote[] = [];
    public CanWrite: boolean;

    public constructor(init?: Partial<CoverageSelfDayNotesResponse>) { (Object as any).assign(this, init); }
}

export class CoverageSelfDayNotePostRequest
{
    public Date: string;
    public Body: string;

    public constructor(init?: Partial<CoverageSelfDayNotePostRequest>) { (Object as any).assign(this, init); }
}

TypeScript CoverageSelfDayNotePostRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/coverage/self/daynotes HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Date":"String","Body":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"TodayLabel":"String","Today":[{"RosterDayNoteID":0,"AuthorName":"String","Body":"String","TimeText":"String","Mine":false}],"PreviousLabel":"String","Previous":[{"RosterDayNoteID":0,"AuthorName":"String","Body":"String","TimeText":"String","Mine":false}],"CanWrite":false}