MATLAB Answers

Postman Thingspeak Error 400 & Thinkspeak not updating the data

3 views (last 30 days)
Hi, I am trying to do the bulk update and using the following URL.
https://api.thingspeak.com/channels/channel_id/bulk_update.json
I send the following data
{
"write_api_key": "key",
"updates": [
{
"delta_t": 0,
"wavelengths": 5,
"amplitude": 10
}
]
}
When i write just once the data is written and i get the entry number in reply. Thingspeak still does not show the data. Although it shows that the no of entries have been updated.
https://api.thingspeak.com/update?api_key=key&wavelengths=30&amplitude=50
  2 Comments

Sign in to comment.

Accepted Answer

Christopher Stapels
Christopher Stapels on 23 Mar 2021
Edited: Christopher Stapels on 24 Mar 2021
The bulk write API can be kind of tricky when it comes to syntax.
Follow the bulk write doc suggestions closely. There is a POSTMAN example there, look in the examples section.
For example, you cannot use your field names to update, you need to use field1 and field2 etc. That is also true for writing data at the regular update endpoint.
https://api.thingspeak.com/update?api_key=key&field1=30&field2=50
  2 Comments
Christopher Stapels
Christopher Stapels on 24 Mar 2021
We will consider adding a note to the doc page. I appreciate your feedback.

Sign in to comment.

More Answers (0)

Communities

More Answers in the  ThingSpeak Community

Tags

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by