Delete Image
使用 HTTP DELETE 从通道中删除图像
请求
HTTP方法
DELETE
URL
https://data.thingspeak.com/channels/
<channel_id>
/images?timestamp=<timestamp_src>&start=<start_time>
&end=<end_time>
URL 参数
名称 | 描述 |
---|---|
| (必需)要从中删除图像的通道的通道 ID。 |
| 图片发布时的时间戳来源。 |
| 要删除的图像的时间戳范围的开始,格式为
|
| 要删除的图像的时间戳范围结束,格式为
|
示例: https://data.thingspeak.com/channels/95b0766f76/images?timestamp=ingest&start=2022-02-22T22:22:22.2222+05:00&end=2022-06-22T22:22:22.2222+05:00
主体参数
没有任何。
标头
图像 DELETE请求需要以下标头。
键名称 | 值 |
---|---|
thingspeak-image-channel-api-key | (必需)此特定图像通道的 API 密钥。写入 API 密钥位于图像通道视图的 API Keys 列中。 |
响应
成功
HTTP 状态代码
202 Accepted
主体
立即响应是一个包含请求ID、代码和状态的 JSON 对象。示例:
{ "requestID": "cl2th2wxyuvtsr7m9e3l5blje", "code": 0, "status": "PENDING" }
错误
完整列表请参见 错误代码。