Custom fields in API

Avatar
  • updated
  • Completed
We have added a custom field for topics. We would like to be able to see the value of the custom field in the API. For example, I would expect this URL to return the topic, including all custom fields and their values:

https://userecho.com/api/feedback/414583.json?access_token=xyzxyzxyzxyz

How would you rate the customer service you received?

Satisfaction mark by Mathew Weaver 10 years ago

I am quite pleased with your quick response and that you have added this functionality as requested.

Add a comment about quality of support you received (optional):

Pinned replies
Avatar
Vladimir Mullagaliyev co-founder
  • Answer
  • Completed
Hi Mathew,
We will check custom fields in API and add if it doesn't exists.
Avatar
Vladimir Mullagaliyev co-founder
Quote from Mathew Weaver
This appears to have stopped working. Our code makes the HTTP PUT request to set a custom field. The response is success, but the custom field value never shows up in the topic. Here is an example:

http://forum.earthsoft.com/topic/444028-is-ue-webh...

Here is the API URL that is being used:

https://earthsoft.userecho.com/api/v2/forums/29467/topics.json?access_token=xxxx"

Here is the data being PUT:

{"id":444028,"custom_fields":{"cf_122":"100932"}}

This was working fine previously, but it does not seem to be working today.
Hello Mathew,
We've found the problem.
It looks like you have merged two your accounts and your access token was generated from the old one.
Now it account has no rights to update. That's why it was not updated.

We've updated your access token, now it linked with your current account and works fine!