mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
40 lines
796 B
Markdown
40 lines
796 B
Markdown
---
|
|
title: Studio Image Destroy
|
|
---
|
|
|
|
# Studio Image Destroy Endpoint
|
|
|
|
The studio image destroy endpoint deletes a studio image and returns the deleted studio image resource.
|
|
|
|
For example, the `/studioimage/shaft/9292` endpoint will delete the association between the Shaft studio and the large cover image of id 9292.
|
|
|
|
## URL
|
|
|
|
```sh
|
|
DELETE /studioimage/{studio:slug}/{image:id}
|
|
```
|
|
|
|
## Authentication
|
|
|
|
**Required Permission**: delete studio, delete image
|
|
|
|
**Roles with Permission**: Wiki Editor, Encoder, Admin
|
|
|
|
## Parameters
|
|
|
|
None
|
|
|
|
## Response
|
|
|
|
```json
|
|
{
|
|
message: "Image 'MAJjc1O52inaVlaCtoC2VSZkqjRFDdGW9XN7pmz3.png' has been detached from Studio 'Shaft'.",
|
|
}
|
|
```
|
|
|
|
## Example
|
|
|
|
```bash
|
|
curl -X DELETE -H "Authorization: Bearer {token}" https://api.animethemes.moe/studioimage/shaft/9292
|
|
```
|