mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
1.1 KiB
1.1 KiB
title
| title |
|---|
| Video Script Update |
Video Script Update Endpoint
The video script update endpoint updates a video script and returns the updated video script resource.
For example, the /videoscript/1?path=2009/Summer/Bakemonogatari-OP1.txt endpoint will update the video script path attribute and return the updated video script resource.
URL
PUT|PATCH /videoscript/{id}
Authentication
Required Permission: update video script
Roles with Permission: Admin
Other Requirements: Video script must not be soft deleted
Parameters
| Name | Required | Rules |
|---|---|---|
| path | No | string, max:192 |
| video_id | No | integer, Video ID exists |
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/videoscript/1