mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-11-05 22:04:42 +01:00
feat: adding resource write endpoints (#30)
This commit is contained in:
1 parent
73145b6ad2
commit
16aefdf447
7 files changed
+369
-114
No files matched your search
@@ -0,0 +1,47 @@
|
||||
---
|
||||
title: Resource Force Delete
|
||||
---
|
||||
|
||||
<Block>
|
||||
|
||||
# Resource Force Delete Endpoint
|
||||
|
||||
The resource force delete endpoint hard deletes an external resource and returns a confirmation message.
|
||||
|
||||
For example, the `/api/forceDelete/resource/1083` endpoint will hard delete the MyAnimeList resource for the Bakemonogatari anime and return a confirmation message.
|
||||
|
||||
## URL
|
||||
|
||||
```sh
|
||||
DELETE /api/forceDelete/resource/{id}
|
||||
```
|
||||
|
||||
## Authentication
|
||||
|
||||
**Required Permission**: force delete external resource
|
||||
|
||||
**Roles with Permission**: Admin
|
||||
|
||||
## Parameters
|
||||
|
||||
None
|
||||
|
||||
## Response
|
||||
|
||||
```json
|
||||
{
|
||||
message: "The ExternalResource 'https://myanimelist.net/anime/5081/' was deleted.",
|
||||
}
|
||||
```
|
||||
|
||||
<Example>
|
||||
|
||||
<CURL>
|
||||
```bash
|
||||
curl -X DELETE -H "Authorization: Bearer {token}" https://api.animethemes.moe/forceDelete/resource/1083
|
||||
```
|
||||
</CURL>
|
||||
|
||||
</Example>
|
||||
|
||||
</Block>
|
||||
Reference in new issue
Block a user