Trendsic Platform Service

<back to all web services

CalendarEventRequest

Requires Authentication
Requires any of the roles:Worker, Agent, Administrator, Worker, Agent, Administrator, Worker, Agent, Administrator, Worker, Agent, Administrator
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/CalendarEvent/{CalendarEventId}
GET,POST,PUT,DELETE,OPTIONS/v1/CalendarEvent
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class CalendarEventRequest
{
    open var CalendarEvent:ArrayList<CalendarEvent> = ArrayList<CalendarEvent>()
}

open class CalendarEvent
{
    open var CalendarEventId:Int? = null
    open var CalendarId:UUID? = null
    open var EventStart:Date? = null
    open var EventEnd:Date? = null
    open var Location:String? = null
    open var Summary:String? = null
    open var Description:String? = null
    open var EventTypeId:Int? = null
    open var Recurrence:Boolean? = null
    open var RecurrenceFrequency:String? = null
    open var RecurrenceBy:String? = null
    open var RecurrenceByValue:String? = null
    open var RecurrenceUntil:Date? = null
    open var CreatedBy:String? = null
    open var CreatedByName:String? = null
    open var DateCreated:Date? = null
    open var ModifiedBy:String? = null
    open var DateModified:Date? = null
    open var Deleted:Boolean? = null
    open var TimeZone:String? = null
    open var Offset:Int? = null
    open var TextReminderSentDate:Date? = null
    open var Confirmed:Boolean? = null
    open var ConfirmationTextId:String? = null
    open var FirstTextReminderId:String? = null
    open var SecondTextReminderId:String? = null
    open var LocationUID:UUID? = null
    open var AgentReminderSentDate:Date? = null
    open var ContactId:Int? = null
    open var IsPrivate:Boolean? = null
    open var ProjectID:Int? = null
    open var JobID:Int? = null
    open var ProjectStartDate:Date? = null
    open var ProjectEndDate:Date? = null
    open var MaxCrewEndDate:Date? = null
    open var MaxEquipmentEndDate:Date? = null
    open var CheckInId:UUID? = null
    open var AllDay:Boolean? = null
    open var JobName:String? = null
    open var JobStatusName:String? = null
    open var JobStatusId:Int? = null
    open var ProjectName:String? = null
    open var ResourceId:Int? = null
    open var ResourceName:String? = null
    open var Original_EventStart:Date? = null
    open var Original_Recurrence:Boolean? = null
    open var Original_RecurrenceFrequency:String? = null
    open var Original_RecurrenceBy:String? = null
    open var Original_RecurrenceByValue:String? = null
    open var Original_RecurrenceUntil:Date? = null
    open var Checksum:String? = null
}

open class CalendarEventResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var CalendarEvent:ArrayList<CalendarEvent> = ArrayList<CalendarEvent>()
}

Kotlin CalendarEventRequest 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.

POST /v1/CalendarEvent/{CalendarEventId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	CalendarEvent: 
	[
		{
			CalendarEventId: 0,
			CalendarId: 00000000000000000000000000000000,
			EventStart: 0001-01-01,
			EventEnd: 0001-01-01,
			Location: String,
			Summary: String,
			Description: String,
			EventTypeId: 0,
			Recurrence: False,
			RecurrenceFrequency: String,
			RecurrenceBy: String,
			RecurrenceByValue: String,
			RecurrenceUntil: 0001-01-01,
			CreatedBy: String,
			CreatedByName: String,
			DateCreated: 0001-01-01,
			ModifiedBy: String,
			DateModified: 0001-01-01,
			Deleted: False,
			TimeZone: String,
			Offset: 0,
			TextReminderSentDate: 0001-01-01,
			Confirmed: False,
			ConfirmationTextId: String,
			FirstTextReminderId: String,
			SecondTextReminderId: String,
			LocationUID: 00000000000000000000000000000000,
			AgentReminderSentDate: 0001-01-01,
			ContactId: 0,
			IsPrivate: False,
			ProjectID: 0,
			JobID: 0,
			ProjectStartDate: 0001-01-01,
			ProjectEndDate: 0001-01-01,
			MaxCrewEndDate: 0001-01-01,
			MaxEquipmentEndDate: 0001-01-01,
			CheckInId: 00000000000000000000000000000000,
			AllDay: False,
			JobName: String,
			JobStatusName: String,
			JobStatusId: 0,
			ProjectName: String,
			ResourceId: 0,
			ResourceName: String,
			Original_EventStart: 0001-01-01,
			Original_Recurrence: False,
			Original_RecurrenceFrequency: String,
			Original_RecurrenceBy: String,
			Original_RecurrenceByValue: String,
			Original_RecurrenceUntil: 0001-01-01,
			Checksum: String
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	CalendarEvent: 
	[
		{
			CalendarEventId: 0,
			CalendarId: 00000000000000000000000000000000,
			EventStart: 0001-01-01,
			EventEnd: 0001-01-01,
			Location: String,
			Summary: String,
			Description: String,
			EventTypeId: 0,
			Recurrence: False,
			RecurrenceFrequency: String,
			RecurrenceBy: String,
			RecurrenceByValue: String,
			RecurrenceUntil: 0001-01-01,
			CreatedBy: String,
			CreatedByName: String,
			DateCreated: 0001-01-01,
			ModifiedBy: String,
			DateModified: 0001-01-01,
			Deleted: False,
			TimeZone: String,
			Offset: 0,
			TextReminderSentDate: 0001-01-01,
			Confirmed: False,
			ConfirmationTextId: String,
			FirstTextReminderId: String,
			SecondTextReminderId: String,
			LocationUID: 00000000000000000000000000000000,
			AgentReminderSentDate: 0001-01-01,
			ContactId: 0,
			IsPrivate: False,
			ProjectID: 0,
			JobID: 0,
			ProjectStartDate: 0001-01-01,
			ProjectEndDate: 0001-01-01,
			MaxCrewEndDate: 0001-01-01,
			MaxEquipmentEndDate: 0001-01-01,
			CheckInId: 00000000000000000000000000000000,
			AllDay: False,
			JobName: String,
			JobStatusName: String,
			JobStatusId: 0,
			ProjectName: String,
			ResourceId: 0,
			ResourceName: String,
			Original_EventStart: 0001-01-01,
			Original_Recurrence: False,
			Original_RecurrenceFrequency: String,
			Original_RecurrenceBy: String,
			Original_RecurrenceByValue: String,
			Original_RecurrenceUntil: 0001-01-01,
			Checksum: String
		}
	]
}