mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
935 B
935 B
title
| title |
|---|
| Artist Restore |
Artist Restore Endpoint
The artist restore endpoint restores a soft deleted artist and returns the restored artist resource.
For example, the /restore/artist/chiwa_saitou endpoint will restore the soft deleted Chiwa Saitou artist and return the restored Chiwa Saitou resource.
URL
PATCH /restore/artist/{slug}
Authentication
Required Permission: restore artist
Roles with Permission: Content Moderator, Encoder, Admin
Other Requirements: Artist must be soft deleted
Parameters
None
Response
{
artist: {
id: id,
name: "name",
slug: "slug",
information: "information",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at"
}
}
Example
curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/restore/artist/chiwa_saitou