> For the complete documentation index, see [llms.txt](https://magicpay.gitbook.io/magicpay-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magicpay.gitbook.io/magicpay-documentation/api-key/delete-permission-by-api-key.md).

# Delete Permission By API Key

## 14.4 Delete Permission By API Key

**Request**

| Method | URL                                                    |
| ------ | ------------------------------------------------------ |
| DELETE | /api\_keys/{api\_key\_id}/permissions/{permission\_id} |

**Response**

| Status | Response                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 200    | <p>{</p><p>"secret\_key": "magic-uHyomPzAmva2xls9tVZ89Jop3h1k6\_sJh7mrEZGUqnM",</p><p>"updatedDate": "2024-01-29T08:35:24.947598",</p><p>"createdDate": "2024-01-29T08:35:24.947598",</p><p>"api\_key": "magic-W-O9vzYULk3I6eQo3kD0nHofmELmvCLgJqI1cWwQimY",</p><p>"merchant\_id": 1,</p><p>"id": 70,</p><p>"deletedDate": null,</p><p>"is\_active": true,</p><p>"name": "deneme",</p><p>"permissions": \[</p><p>{</p><p>"name": "auth",</p><p>"createdDate": "2023-10-06T12:09:27.676680",</p><p>"updatedDate": null,</p><p>"description": "ödeme almayı sağlar",</p><p>"id": 8,</p><p>"deletedDate": null</p><p>},</p><p>{</p><p>"name": "preauth",</p><p>"createdDate": "2023-10-06T12:10:16.983874",</p><p>"updatedDate": null,</p><p>"description": " ön ödeme almayı sağlar",</p><p>"id": 9,</p><p>"deletedDate": null</p><p>},</p><p>{</p><p>"name": "refund",</p><p>"createdDate": "2023-10-06T12:11:43.098157",</p><p>"updatedDate": null,</p><p>"description": "iptal ve iade yapmayı sağlar",</p><p>"id": 11,</p><p>"deletedDate": null</p><p>}</p><p>]</p><p>}</p> |
| 403    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| 400    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| 401    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| 401    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| 500    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

<br>
