Answered

Create Note API - Not working

  • 24 September 2020
  • 4 replies
  • 30 views

I’m Trying to create a note through API but I keep geting the folowing error:

{

 

"type": "error.list",

 

"request_id": "00004sf7lmss99tebltg",

 

"errors": [

 

{

 

"code": "parameter_invalid",

 

"message": "Body can't be nil"

 

}

 

]

 

}

I also noticed that the documentation URL is wrong, ‘note’ should be “notes”

API Call:

$ curl https://api.intercom.io/contacts/id/note

-X POST

-H 'Authorization:Bearer ’

-H ‘Accept:application/json’ -d

{

“body”: “Shiny”,

“admin_id”: “12345”

}

icon

Best answer by Roy 24 September 2020, 18:34

View original

4 replies

Userlevel 1
Badge

@user345​ , Yes there definitely should be "notes".

 

But it's working from me.

=========================

Authorization: Bearer

Host: api.intercom.io

Accept: application/json

Content-Type: application/json

Content-Length: 46

{

 "body": "Shiny",

 "admin_id": "12345"

}

=========================

Shiny noTes

Userlevel 1
Badge

Let's tag @Jack Jenkins​ , to change the note to notes 😎

Userlevel 1

Nice one looping in someone from the Intercom team, @roy s11​! Just so you know, Jack looks after our Help Center, but not our developer docs - I've asked the team that does, though, to make this change!

Userlevel 1

That's been corrected now - for future reference @roy s11​ and @user345​, each section in our Developer Docs has a Suggest Edits button so that you can submit your own suggested changes 🙌

Reply