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 |
|---|
| Artist Store |
Artist Store Endpoint
The artist store endpoint creates a new artist and returns the new artist resource.
For example, the /artist?name=Chiwa+Saito&slug=chiwa_saitou endpoint will create a new Chiwa Saitou artist and return the new Chiwa Saitou resource.
URL
POST /artist
Authentication
Required Permission: create artist
Roles with Permission: Content Moderator, Encoder, Admin
Parameters
| Name | Required | Rules |
|---|---|---|
| name | Yes | string, max:192 |
| slug | Yes | string, max:192, alpha_dash, unique |
| information | No | string, max:65535 |
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 POST -H "Authorization: Bearer {token}" https://api.animethemes.moe/artist/