Not able to POST Activity

51 views
Skip to first unread message

t...@bincsearch.com

unread,
Nov 12, 2015, 9:47:44 PM11/12/15
to CATS API v3
Trying to POST an Activity as a test but get an error: {"message":"Internal Service Error"}

Redacted call = curl -X POST --header "Content-Type: application/x-www-form-urlencoded" --header "Accept: application/json" --header "Authorization: Basic API_KEY_REDACTED" -d "type=600" "https://api.catsone.com/v3/candidates/109170468/activities"

I know the API KEY is valid as it works for get activities, so drawing some blanks here. Also, it would be great to have the documentation expanded to explain valid options for required files, such as type.

Thoughts on the issue?

Anthony Allan

unread,
Jan 27, 2016, 4:22:57 PM1/27/16
to CATS API v3
Hey Tim,

Sorry about the super delayed response, I just recently took over development duties on the API. The issue you're having is that the API currently only allows specific values for Activity types: type_other, type_call_talked, type_call_lvm, type_call_missed, type_email, and type_meeting. This is definitely not explained anywhere, and I'm sorry for the confusion it has caused. Within the next couple days I will be pushing a fix that adds proper validation to that field which will return the list of allowed values to prevent future confusion.

Anthony Allan

unread,
Feb 3, 2016, 11:54:51 AM2/3/16
to CATS API v3
The API has been updated with proper validation for that field. Now if you try to submit an activity with an invalid type, you will receive an error message with a list of valid options.
Reply all
Reply to author
Forward
0 new messages