0

Back& API allows to remove only with an ID. How do I delete multiple rows from a table on Backand by the values of other columns?
I need to remove by other fields of the table, not by ID

1 Answers1

1

To delete multiple rows use the following REST configuration. The headers should contain your Authorization bearer and AppName

url: https://api.backand.com/1/bulk
body: [
    {
        "method":"DELETE",
        "url":"https://api.backand.com/1/objects/YOUR_OBJECT_NAME/OBJECT_ID1"
    },
    {
       "method":"DELETE",
        "url":"https://api.backand.com/1/objects/YOUR_OBJECT_NAME/OBJECT_ID2"
    }
]

e.g.

[
    {
        "method":"DELETE",
        "url":"https://api.backand.com/1/objects/news/2"
    },
    {
        "method":"DELETE",
        "url":"https://api.backand.com/1/objects/news/3"
    }
]

headers should look like this

Headers:{"Authorization": Bearer YOUR_ACCESS_TOKEN, "AppName": YOUR_APP_NAME}
user3375230
  • 421
  • 2
  • 5