Lead & Opportunity

Delete opportunities in a batch

Soft-deletes the opportunities whose ids are in the body, a JSON array.

post/entities/Opportunities/batch-delete

Request

Query parameters

rollback-method0 | 1

0, the default: one failed item fails the whole batch (HTTP 422, or 404 for an unknown id) and nothing is written. 1: the valid items are written and the call answers 200 with success false and one result per item, an id or an error, in input order. Check every item.

Request body

string[] required

Response

Result per id, in request order: the id of the deleted record, or the error.

successboolean

True when the request succeeded; false on error.

Example response

{
  "success": true,
  "data": [
    {
      "http_status": 400,
      "code": 117,
      "name": "ERROR_PARAMETER_INVALID"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.