Answered

Unable to create note- getting 404 error

  • 9 December 2020
  • 3 replies
  • 104 views

Hi,

 

I've mostly managed to navigate the Intercom API without issues. However, I'm struggling to create a note. (I'm using Python, but can replicate the issue with curl.)

 

curl https://api.intercom.io/contacts/5f908d5b37fbb4bceed4c97a/note-X POST -H 'Authorization:Bearer *snip*' -H 'Accept:application/json' -d 

 

{

 "body": "Shiny",

 "admin_id": "*snip*"

}

 

And I get a 404. Basically, https://api.intercom.io/contacts/lt;intercomid>/note doesn't seem to exist.

 

If I change the URL to https://api.intercom.io/contacts/lt;intercomid>/notes then I get a different error - 400, "Body can't be nil"

 

I am on the latest version (2.3) of the API.

 

Can anyone help please?

 

Thanks

Robert

icon

Best answer by Roy 9 December 2020, 03:45

View original

3 replies

OK... I think I've solved the problem. It seems to work if I don't pass the admin_id field.

 

Which is fine...

Userlevel 1
Badge

Hello @robert s12​ 👋 , There is a mistake in the API documentation, there should be "notes" instead of a "note".

Just change the request URL - https://api.intercom.io/contacts/id/b>notes.

 

Let me know if that works

Working fine now ,thanks!

Reply