mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-25 00:14:00 +02:00
968 B
968 B
title
| title |
|---|
| Resource Destroy |
Resource Destroy Endpoint
The resource destroy endpoint soft deletes an external resource and returns the deleted external resource.
For example, the /resource/1083 endpoint will soft delete the MyAnimeList resource for the Bakemonogatari anime and return the deleted MyAnimeList resource.
URL
DELETE /resource/{id}
Authentication
Required Permission: delete external resource
Roles with Permission: Content Moderator, Encoder, Admin
Other Requirements: Resource must not be soft deleted
Parameters
None
Response
{
resource: {
id: id,
link: "link",
external_id: external_id,
site: "site",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at",
link: "link"
}
}
Example
curl -X DELETE -H "Authorization: Bearer {token}" https://api.animethemes.moe/resource/1083