Files
animethemes-api-docs/docs/artist/store
paranarimasu 57dd7eecd7 fix: update links to production domain (#23)
* fix: update links to production domain

* add missing README change
2022-05-31 20:46:45 -05:00
..

title
title
Artist Store

Artist Store Endpoint

The artist store endpoint creates a new artist and returns the new artist resource.

For example, the /api/artist?name=Chiwa+Saito&slug=chiwa_saito endpoint will create a new Chiwa Saito artist and return the new Chiwa Saito resource.

URL

POST /api/artist

Authentication

Required Permission: create artist

Roles with Permission: Wiki Editor, Admin

Parameters

Name Required Rules
name Yes string, max:192
slug Yes string, max:192, alpha_dash, unique

Response

{
    artist: {
        id: id,
        name: "name",
        slug: "slug",
        created_at: "created_at",
        updated_at: "updated_at",
        deleted_at: "deleted_at"
    }
}
```bash curl -X POST -H "Authorization: Bearer {token}" https://api.animethemes.moe/artist/ ```