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}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class CalendarRequest
{
    open var CalendarId:UUID? = null
    open var CalendarEventId:Int? = null
    open var CalendarType:CalendarType? = null
    open var CalendarFormat:CalendarFormat? = null
    open var ContactId:Int? = null
    open var StartDate:Date? = null
    open var EndDate:Date? = null
    open var ProjectId:Int? = null
    open var LocationId:UUID? = null
    open var AgentId:Int? = null
    open var ExpandRecurringEvents:Boolean? = null
    open var ExpandAll:Boolean? = null
}

enum class CalendarType
{
    All,
    Pera,
    Google,
}

enum class CalendarFormat
{
    Standard,
    Ics,
}

Kotlin CalendarRequest DTOs

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

HTTP + XML

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: application/xml