Answered

Documentation and code samples are not aligned. What is the right one?

  • 9 April 2021
  • 3 replies
  • 15 views

Documentation in many places is not updated and it is not aligned with the code snippets. For example, the section for Custom attributes:

https://developers.intercom.com/intercom-api-reference/reference#section-request-body-parameters/p>

In request body parameters, 'model' property is understood as a mandatory one. On the other hand, in CURL code snippet, it is missing, instead there is another one, not mentioned in a description, 'company'.

"data_type" property in the code snippet has "options" value, which is not listed in the documentation on the left side.

Also, phrase "Provide a set of hashes..." sounds odd, hash is mostly understood as non-readable representation of the input value, got from the transformation of the input value. From the context we can get a feeling that we just need to provide a set of text key/value pairs.

Overall, the right working code can be get only from the test and trials, which is not very efficient, and can lead to unexpected result.

 

 

intercom-documentation-outdated

icon

Best answer by Sam 9 April 2021, 20:42

View original

3 replies

Badge +1

Ahh! Nice spot! I've suggested an edit to fix the problems with the documentation on your behalf. Hopefully it will get changed soon.

On behalf of fellow customers, thank you for pointing that out so that it can be fixed! 🙌

thanks for quick update @user1030​ 

Badge +1

Adding on, the correct documentation is likely the one on the left.

Reply