{"basePath":"https://wshero08.herobase.com/api","resourcePath":"/calendarevents","apis":[{"path":"/calendars/{CalendarCode}/events","description":"Gets events from the calendar","operations":[{"httpMethod":"GET","nickname":"getcalendarsCalendarCodeevents","summary":"Gets events from the calendar","parameters":[{"name":"CalendarCode","description":"Code of the calendar","paramType":"path","allowMultiple":false,"required":true,"dataType":"string"},{"name":"FromDate","description":"Start of period","paramType":"query","allowMultiple":false,"required":true,"dataType":"DateTime"},{"name":"ToDate","description":"End of period","paramType":"query","allowMultiple":false,"required":true,"dataType":"DateTime"}],"responseClass":"Array[CalendarEvent]","errorResponses":[{"code":200,"reason":"Request was processed without errors."},{"code":400,"reason":"Error in request."},{"code":401,"reason":"Authentication failed. Read more about <a href=\"#doc:about_authentication\">authentication</a>."},{"code":403,"reason":"Requested resource is not accessible using those credentials."},{"code":406,"reason":"Accepted response mime types are not supported."},{"code":429,"reason":"Too many requests. Read more about <a href=\"#doc:about_rate_limiting\">rate limiting</a>."},{"code":500,"reason":"Something broke."}]}]},{"path":"/calendars/events","description":"Gets events from all calendars","operations":[{"httpMethod":"GET","nickname":"getcalendarsevents","summary":"Gets events from all calendars","parameters":[{"name":"Project","description":"Project filter. Syntax is Glob, ex. Canvas* or Te?t","paramType":"query","allowMultiple":false,"required":false,"dataType":"string"},{"name":"FromDate","description":"Start of period","paramType":"query","allowMultiple":false,"required":true,"dataType":"DateTime"},{"name":"ToDate","description":"End of period","paramType":"query","allowMultiple":false,"required":true,"dataType":"DateTime"}],"responseClass":"Array[CalendarEvent]","errorResponses":[{"code":200,"reason":"Request was processed without errors."},{"code":400,"reason":"Error in request."},{"code":401,"reason":"Authentication failed. Read more about <a href=\"#doc:about_authentication\">authentication</a>."},{"code":403,"reason":"Requested resource is not accessible using those credentials."},{"code":406,"reason":"Accepted response mime types are not supported."},{"code":429,"reason":"Too many requests. Read more about <a href=\"#doc:about_rate_limiting\">rate limiting</a>."},{"code":500,"reason":"Something broke."}]}]},{"path":"/calendars/events","description":"Creates a  calendar event","operations":[{"httpMethod":"POST","nickname":"postcalendarsevents","summary":"Creates a  calendar event","parameters":[{"paramType":"body","allowMultiple":false,"required":false,"dataType":"CreateCalendarEvent"}],"responseClass":"CalendarEvent","errorResponses":[{"code":200,"reason":"Request was processed without errors."},{"code":400,"reason":"Error in request."},{"code":401,"reason":"Authentication failed. Read more about <a href=\"#doc:about_authentication\">authentication</a>."},{"code":403,"reason":"Requested resource is not accessible using those credentials."},{"code":406,"reason":"Accepted response mime types are not supported."},{"code":429,"reason":"Too many requests. Read more about <a href=\"#doc:about_rate_limiting\">rate limiting</a>."},{"code":500,"reason":"Something broke."}]}]},{"path":"/calendars/events/{UniqueId}","description":"Updates calendar event","operations":[{"httpMethod":"PUT","nickname":"putcalendarseventsUniqueId","summary":"Updates calendar event","parameters":[{"name":"UniqueId","description":"Event unique id to update existent lead","paramType":"path","allowMultiple":false,"required":true,"dataType":"string"},{"paramType":"body","allowMultiple":false,"required":false,"dataType":"UpdateCalendarEvent"}],"errorResponses":[{"code":200,"reason":"Request was processed without errors."},{"code":400,"reason":"Error in request."},{"code":401,"reason":"Authentication failed. Read more about <a href=\"#doc:about_authentication\">authentication</a>."},{"code":403,"reason":"Requested resource is not accessible using those credentials."},{"code":406,"reason":"Accepted response mime types are not supported."},{"code":429,"reason":"Too many requests. Read more about <a href=\"#doc:about_rate_limiting\">rate limiting</a>."},{"code":500,"reason":"Something broke."}]}]},{"path":"/calendars/events/{UniqueId}","description":"Removes calendar event","operations":[{"httpMethod":"DELETE","nickname":"deletecalendarseventsUniqueId","summary":"Removes calendar event","parameters":[{"name":"UniqueId","description":"Event unique id to remove","paramType":"path","allowMultiple":false,"required":true,"dataType":"string"},{"paramType":"body","allowMultiple":false,"required":false,"dataType":"RemovesCalendarEvent"}],"errorResponses":[{"code":200,"reason":"Request was processed without errors."},{"code":400,"reason":"Error in request."},{"code":401,"reason":"Authentication failed. Read more about <a href=\"#doc:about_authentication\">authentication</a>."},{"code":403,"reason":"Requested resource is not accessible using those credentials."},{"code":406,"reason":"Accepted response mime types are not supported."},{"code":429,"reason":"Too many requests. Read more about <a href=\"#doc:about_rate_limiting\">rate limiting</a>."},{"code":500,"reason":"Something broke."}]}]}],"models":{"GetCalendarCalendarEvents":{"id":"GetCalendarCalendarEvents","properties":{"calendarCode":{"type":"string","required":true},"fromDate":{"type":"Date","required":true},"toDate":{"type":"Date","required":true}}},"UpdateCalendarEvent":{"id":"UpdateCalendarEvent","properties":{"uniqueId":{"type":"string","required":true},"calendarCode":{"description":"Event calendar code","type":"string","required":true},"title":{"description":"Event title","type":"string","required":true},"notes":{"description":"Event note","type":"string","required":true},"start":{"description":"Event start time","type":"Date","required":true},"end":{"description":"Event end time","type":"Date","required":true},"source":{"description":"Source of the event","type":"string","required":true},"externalId":{"description":"Event id in the external system","type":"string","required":true}}},"RemovesCalendarEvent":{"id":"RemovesCalendarEvent","properties":{"uniqueId":{"type":"string","required":true}}},"GetCalendarEvents":{"id":"GetCalendarEvents","properties":{"project":{"type":"string","required":true},"fromDate":{"type":"Date","required":true},"toDate":{"type":"Date","required":true}}},"CreateCalendarEvent":{"id":"CreateCalendarEvent","properties":{"calendarCode":{"description":"Event calendar code","type":"string","required":true},"title":{"description":"Event title","type":"string","required":true},"notes":{"description":"Event note","type":"string","required":true},"start":{"description":"Event start time","type":"Date","required":true},"end":{"description":"Event end time","type":"Date","required":true},"source":{"description":"Source of the event","type":"string","required":true},"externalId":{"description":"Event id in the external system","type":"string","required":true}}},"CalendarEvent":{"id":"CalendarEvent","properties":{"uniqueId":{"type":"string","required":true},"calendarCode":{"type":"string","required":true},"leadUniqueId":{"type":"string","required":true},"title":{"type":"string","required":true},"notes":{"type":"string","required":true},"start":{"type":"Date","required":true},"end":{"type":"Date","required":true},"source":{"type":"string","required":true},"externalId":{"type":"string","required":true}}}}}