mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-25 00:14:00 +02:00
920 B
920 B
title
| title |
|---|
| Video Script Restore |
Video Script Restore Endpoint
The video script restore endpoint restores a soft deleted video script and returns the restored video script resource.
For example, the /restore/videoscript/1 endpoint will restore the soft deleted video script of id '1' and return the restored video script resource.
URL
PATCH /restore/videoscript/{id}
Authentication
Required Permission: restore video script
Roles with Permission: Encoder, Admin
Other Requirements: Video script must be soft deleted
Parameters
None
Response
{
videoscript: {
id: id,
path: "path",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at",
link: "link
}
}
Example
curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/restore/videoscript/1