mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
991 B
991 B
title
| title |
|---|
| Playlist Track Restore |
Playlist Track Restore Endpoint
The playlist track restore endpoint restores a soft deleted playlist track and returns the restored playlist track resource.
For example, the /restore/playlist/N4hG/track/Q3hD endpoint will restore the soft deleted playlist track of id Q3hD and return the restored playlist track resource.
The restored track will be appended to the end of the list of tracks in the playlist.
URL
PATCH /restore/playlist/{id}/track/{id}
Authentication
Required Permission: restore playlist track
Other Requirements: User must own playlist & playlist track must be soft deleted
Parameters
None
Response
{
track: {
id: "id",
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/playlist/N4hG/track/Q3hD