Trendsic Platform Service

<back to all web services

CalendarRequest

The following routes are available for this service:
GET,OPTIONS/v1/Calendar/{CalendarId}
GET,OPTIONS/v1/Calendar/Project/{ProjectId}
GET,OPTIONS/v1/Calendar/Location/{LocationId}
GET,OPTIONS/v1/Calendar/Agent/{AgentId}
GET,OPTIONS/v1/Calendar/Project/{ProjectId}/{StartDate}/{EndDate}
GET,OPTIONS/v1/Calendar/Project/{ProjectId}/CalendarEventId/{CalendarEventId}
GET,OPTIONS/v1/Calendar/{CalendarId}/{StartDate}/{EndDate}
GET,OPTIONS/v1/Calendar/Project/{StartDate}/{EndDate}
GET,OPTIONS/v1/Calendar/Project/ExpandRecurring/{ProjectId}
GET,OPTIONS/v1/Calendar/CrewMember/Availability/{ContactId}/{StartDate}/{EndDate}
GET,OPTIONS/v1/Calendar/Project/ExpandRecurring/{ProjectId}/{StartDate}/{EndDate}
GET,OPTIONS/v1/Calendar/Project/ExpandRecurring/{ProjectId}/CalendarEventId/{CalendarEventId}
GET,OPTIONS/v1/Calendar/Project/ExpandRecurring/ExpandAll/{ProjectId}/{StartDate}/{EndDate}
"use strict";
/** @typedef {'All'|'Pera'|'Google'} */
export var CalendarType;
(function (CalendarType) {
    CalendarType["All"] = "All"
    CalendarType["Pera"] = "Pera"
    CalendarType["Google"] = "Google"
})(CalendarType || (CalendarType = {}));
/** @typedef {'Standard'|'ICS'} */
export var CalendarFormat;
(function (CalendarFormat) {
    CalendarFormat["Standard"] = "Standard"
    CalendarFormat["ICS"] = "ICS"
})(CalendarFormat || (CalendarFormat = {}));
export class CalendarRequest {
    /** @param {{CalendarId?:string,CalendarEventId?:number,CalendarType?:CalendarType,CalendarFormat?:CalendarFormat,ContactId?:number,StartDate?:string,EndDate?:string,ProjectId?:number,LocationId?:string,AgentId?:number,ExpandRecurringEvents?:boolean,ExpandAll?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    CalendarId;
    /** @type {number} */
    CalendarEventId;
    /** @type {CalendarType} */
    CalendarType;
    /** @type {CalendarFormat} */
    CalendarFormat;
    /** @type {number} */
    ContactId;
    /** @type {string} */
    StartDate;
    /** @type {string} */
    EndDate;
    /** @type {number} */
    ProjectId;
    /** @type {string} */
    LocationId;
    /** @type {number} */
    AgentId;
    /** @type {boolean} */
    ExpandRecurringEvents;
    /** @type {boolean} */
    ExpandAll;
}

JavaScript CalendarRequest DTOs

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

HTTP + JSV

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

GET /v1/Calendar/{CalendarId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv