TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Delete several photos by ID

DELETEhttps://api.testingapis.com/api/Photos/bulkSign in to see this endpoint's URL

Parameters 1

NameTypeDescription
idsquery · stringComma-separated record IDs, e.g. 1,2,3.

Responses

200
Returns { message, deleted, notFound }; IDs that do not exist are listed in notFound.
400
The ids parameter is missing or is not a list of integers.

Example

Request
curl -X DELETE "https://api.testingapis.com/api/Photos/bulk?ids=52,53" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{"message": "2 photo record(s) deleted", "deleted": [52, 53], "notFound": []}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.