POST - Activities Error - Resource not Found

47 views
Skip to first unread message

Ryan Cravotta

unread,
Oct 19, 2023, 5:42:21 PM10/19/23
to CATS API v3
Hi there. I'm looking for a little direction. 

I was trying to use Zapier to update a CATS candidate with a Google calendar confirmation using the custom code feature and got this message 

Failed to create a request in Webhooks by Zapier
type must not be empty. (HTTP Status Code: 400)

{ "type": "meeting", "regarding_id": null, "notes": "1. Summary: ZOOM- ProFile B…up candidate name", "date": "2023-10-18T15:55:05.000Z" }


Then I tried it in Postman request below, and I got a 400 ERROR


{
"type": "meeting",
"regarding_id": null,
"notes": "Confirmed for October 26, 9:40am",
"date": "2023-10-18T15:55:05.000Z"
}

RESPONSE

{
"message": "Resource not found."
}

Steve Gagnon

unread,
Oct 23, 2023, 7:10:34 PM10/23/23
to CATS API v3
I don't see anything wrong with the URL. Make certain you have a candidate id that exists and you are using POST.

I tested on my CATS site and it went through. My best guess is somehow you are using the wrong candidate ID.

curl --request POST \
  --url https://api.catsone.com/v3/candidates/{CANDIDATE ID}/activities \
  --header 'Authorization: Token {API TOKEN}' \
  --header 'Content-Type: application/json' \
  --data '{

    "type": "meeting",
    "regarding_id": null,
    "notes": "Confirmed for October 26, 9:40am",
    "date": "2023-10-18T15:55:05.000Z"
}
'

Ryan Cravotta

unread,
Feb 23, 2024, 12:24:58 PM2/23/24
to CATS API v3
Thanks, Steve. You were correct to check my request details in Postman but...it was not the candidate ID. After checking what you mentioned, and still unsuccessfully sending requests I finally noticed that the URL I sent was incorrect. 

I forgot /candidates/ 
before [candidate ID]/activities

I got the 201 

Hopefully, this serves as a reminder to anyone looking through the community for answers like I was. When working with (any) API always double-check, not just the body and headers, but something as mundane as the URL request too. 


Reply all
Reply to author
Forward
0 new messages