Update channel data with HTTP GET or POST and execute TalkBack command
POST
or GET
https://api.thingspeak.com/update.
<format>
Name | Description |
---|---|
| Format for the HTTP response, specified as
|
Example:
https://api.thingspeak.com/update.json?api_key=XXXXXXXXXXXXXXXXtalkback_key=YYYYYYYYYYYYYYYY
Name | Description | Value Type |
---|---|---|
api_key | (Required) Specify Write API Key for this specific channel. You can also send the Write API Key using a THINGSPEAKAPIKEY HTTP header. The Write API Key is found on the API Keys tab of the channel view. | string |
talkback_key | (Required) API key for a specific instance of TalkBack. Including the TalkBack API key causes the next command in the queue to be removed and returns the command in the response. | string |
field<X> | (Optional) Field X data, where X is the field ID | any |
lat | (Optional) Latitude in degrees | decimal |
long | (Optional) Longitude in degrees | decimal |
elevation | (Optional) Elevation in meters | integer |
status | (Optional) Status update message | string |
twitter | (Optional) Twitter® username linked to ThingTweet | string |
tweet | (Optional) Twitter status update | string |
created_at | (Optional) Date when feed entry was created, in ISO
8601 format, for example, | datetime |
Content-Type is required only for the POST method, not for the GET method.
Use application/json
for updates in JSON format.
Use application/x-www-form-urlencoded
for all other
updates.
For the full list, see Error Codes.
All timestamps must be unique. You cannot write new data using timestamps that match existing data in the channel.
Add
Command
| Bulk Write Data
| Delete
Command
| Execute
Command
| Get All
Commands
| Update
Command