Post

2 followers Follow
0
Avatar

Unable to fetch Calendar exceptions via rest api.

Hello,

We have encountered "Internal Error" while fetching calendar exceptions using rest API, https://api.clarizen.com/V2.0/services/data/GetCalendarExceptions

Format of the url: https://api2.clarizen.com/V2.0/services/data/GetCalendarExceptions?fromDate="2015-11-01T00:00:00"&toDate="2015-11-31T00:00:00"

Reference id is not available in the error message.

Tried retrieving the exceptions via command line using curl.exe.

Command:

Curl -d"{fromDate:"2017-01-01T00:00:00",toDate:"2017-08-31T00:00:00"}"  https://api.clarizen.com/V2.0/services/data/GetCalendarExceptions

 

error message:

{"errorCode":"FileNotFound","message":"File not found: data/GetCalendarExceptions.","referenceId":"fA0E9tc7H2ceAcp1s0fVG"} 

How can we fetch calendar exceptions for each individual user in Clarizen?

santhosh yalamuri Answered

Official comment

Avatar

Hi Santhosh,

Please make sure you are using the GET http method.

I've tested the action with the below parameters and it works so make sure the dates are passed as documented:

GetCalendarExceptions?fromDate=2017-01-01&toDate=2017-12-01

 

I hope this helps,

Elad

Elad Franklin
Comment actions Permalink

Please sign in to leave a comment.

1 comment