mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-25 08:24:00 +02:00
1.1 KiB
1.1 KiB
title
| title |
|---|
| Studio Update |
Studio Update Endpoint
The studio update endpoint updates a studio and returns the updated studio resource.
For example, the /studio/shaft?name=Shaft endpoint will update the Shaft studio name attribute and return the updated Shaft resource.
URL
PUT|PATCH /studio/{slug}
Authentication
Required Permission: update studio
Roles with Permission: Content Moderator, Encoder, Admin
Other Requirements: Studio must not be soft deleted
Parameters
| Name | Required | Rules |
|---|---|---|
| name | No | string, max:192 |
| slug | No | string, max:192, alpha_dash, unique |
Response
{
studio: {
id: id,
name: "name",
slug: "slug",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at"
}
}
Example
curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/studio/shaft