주요 콘텐츠

Delete TalkBack Command

Delete TalkBack command from TalkBack queue

Request

HTTP Method

DELETE

URL

https://api.thingspeak.com/talkbacks/<talkback_id>/commands/<command_id>.<format>

Input Arguments

NameDescription

<talkback_id>

(Required) TalkBack ID, specified as a positive integer.

<command_id>

(Required) Command ID for the command of interest, specified as a positive integer.

<format>

Format for the HTTP response, specified as json or xml.

Example: https://api.thingspeak.com/talkbacks/12345/commands/112233.json

Query String Parameters

NameDescriptionValue Type
api_key

(Required) API key for this specific instance of TalkBack. The TalkBack key is different from the channel and user API keys.

string

Content-Type

application/x-www-form-urlencoded

Response

Success

HTTP Status Code

200 OK

Body

Leave <format> blank to receive the response in text format.

DELETE https://api.thingspeak.com/talkbacks/TALKBACK_ID/commands/COMMAND_ID
       api_key=YOUR_TALKBACK_API_KEY=XXXXXXXXXXXXXXXX

Sample Response

OPENDOOR
DELETE https://api.thingspeak.com/talkbacks/12345/commands/2448500.json
       api_key=XXXXXXXXXXXXXXXX

Response

{
  "command_string": "OPENDOOR",
  "created_at": "2018-12-29T17:53:40-05:00",
  "executed_at": null,
  "id": 2448500,
  "position": 5
}
DELETE https://api.thingspeak.com/talkbacks/TALKBACK_ID/commands/COMMAND_ID.xml
       api_key=XXXXXXXXXXXXXXXX

Response

<?xml version="1.0" encoding="UTF-8"?>
<command>
  <id type="integer">1248500</id>
  <command-string>OPENDOOR</command-string>
  <position type="integer">5</position>
  <created-at type="datetime">2018-12-30T16:51:17-05:00</created-at>
  <executed-at type="datetime" nil="true"/>
</command>

Error

For the full list, see Error Codes.