Write Data and Execute TalkBack Command
Update channel data with HTTP GET or POST and execute TalkBack command
Request
HTTP Method
POST
or GET
URL
https://api.thingspeak.com/update.
<format>
URL Parameters
Name | Description |
---|---|
| Format for the HTTP response, specified as
|
Example:
https://api.thingspeak.com/update.json?api_key=XXXXXXXXXXXXXXXXtalkback_key=YYYYYYYYYYYYYYYY
Body
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 |
created_at | (Optional) Date when feed entry was created, in ISO
8601 format, for example, | datetime |
Content-Type
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.
Response
Error
For the full list, see Error Codes.
Examples
Limitations
All timestamps must be unique. You cannot write new data using timestamps that match existing data in the channel.
See Also
Bulk Write Data
| Add
Command
| Get All
Commands
| Update
Command
| Execute
Command
| Delete
Command