API notification for Candidates data changing
Hi.
I'm trying to setting the API notification to a custom url on candidate data changing following this guide:
In my request body I put this:
- {
- "watch": [
- {
- "channel_id": "1000000012345",
- "events": [
- "Candidates.create",
- "Candidates.edit"
- ],
- "token": "TOKEN_FOR_VERIFICATION_OF_1000000012345",
- "notify_url": "http://my-personal-url/"
- }
- ]
- }
But I'm receiving this error:
- {
- "watch": [
- {
- "code": "INVALID_DATA",
- "details": {
- "api_name": "events"
- },
- "message": "invalid data",
- "status": "error"
- }
- ]
- }
What's wrong?