mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
40 lines
781 B
Markdown
40 lines
781 B
Markdown
---
|
|
title: Artist Song Destroy
|
|
---
|
|
|
|
# Artist Song Destroy Endpoint
|
|
|
|
The artist song destroy endpoint deletes an artist song and returns the deleted artist song resource.
|
|
|
|
For example, the `/artistsong/chiwa_saitou/3373` endpoint will delete the association between the Chiwa Saitou artist and the "staple stable" song.
|
|
|
|
## URL
|
|
|
|
```sh
|
|
DELETE /artistsong/{artist:slug}/{song:id}
|
|
```
|
|
|
|
## Authentication
|
|
|
|
**Required Permission**: delete artist, delete song
|
|
|
|
**Roles with Permission**: Content Moderator, Encoder, Admin
|
|
|
|
## Parameters
|
|
|
|
None
|
|
|
|
## Response
|
|
|
|
```json
|
|
{
|
|
message: "Song 'staple stable' has been detached from Artist 'Chiwa Saitou'.",
|
|
}
|
|
```
|
|
|
|
## Example
|
|
|
|
```bash
|
|
curl -X DELETE -H "Authorization: Bearer {token}" https://api.animethemes.moe/artistsong/chiwa_saitou/3373
|
|
```
|