---
title: "Bulk-delete phone call legs"
method: POST
path: "/public-api/v1/phone_call_legs/bulk_delete"
tags: ["phone_call_legs"]
---

# Bulk-delete phone call legs

`POST /public-api/v1/phone_call_legs/bulk_delete`

## Request

- Base URL: `/` (relative, and the document’s source URL is not known)
- URL: `/public-api/v1/phone_call_legs/bulk_delete`
- Auth: HTTP bearer and API key in header `x-tenant-code`

Delete multiple call-detail records by id; ``204`` on success.

All-or-nothing and not idempotent: unknown id → ``404``, busy/ongoing call → ``422``.

## Request body

- CallDetailBulkDeleteRequest: Request body for ``POST /phone_call_legs/bulk_delete`` (1 to 100 ids).
  - `call_details` CallDetailId[], required
    - `id` string, uuid, required

## Response `204`

The requested phone call legs were deleted. The response body is empty.

## Other responses

- `400`: The tenant could not be resolved from the request.
- `401`: Error envelope (`public_api.unauthorized`).
- `403`: The request is not allowed for the current tenant or access configuration.
- `404`: Error envelope (`public_api.not_found`).
- `409`: Error envelope (`public_api.conflict`).
- `413`: The request body exceeds the maximum allowed size.
- `422`: Validation Error
- `429`: Rate limit exceeded. Wait for ``Retry-After`` seconds before retrying.
- `502`: Error envelope (`public_api.internal_error`).
- `503`: The request could not be served right now. Please retry.
- `504`: Error envelope (`public_api.request_timeout`).

---

[API](https://skmtc.dev/miitel/apis/miitel-public-api.md) - [All operations](https://skmtc.dev/miitel/apis/miitel-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/miitel/apis/miitel-public-api/revisions/961732756fa3?raw)
