-1

我想知道是否有办法使用 .csv 格式而不是 .json 格式发送 DELETE 请求?

API 参考:http ://dev.socrata.com/publishers/direct-row-manipulation.html

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Date: Thu, 27 Mar 2014 00:48:42 GMT

[
  {
    "typ": "delete",
    "id": "row-evac~sxbs~gm8t"
  }
]

我尝试了一些类似的东西:

    typ, id
    delete, row-evac~sxbs~gm8t

无济于事。

4

1 回答 1

0

您可以通过添加“:deleted”列并传递 true 值来使用 CSV 有效负载进行删除。您也可以省略除 ID 之外的所有其他列。例子:

Earthquake ID,:deleted
15215753, true

确保您也使用“text/csv”的内容类型。

于 2014-04-11T21:17:41.787 回答