mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-25 00:14:00 +02:00
1.1 KiB
1.1 KiB
title
| title |
|---|
| Page Store |
Page Store Endpoint
The page store endpoint creates a new page and returns the new page resource.
For example, the /page?name=Encoding&slug=encoding&body=Lorem+Ipsum endpoint will create a new Encoding page and return the new Encoding resource.
URL
POST /page
Authentication
Required Permission: create page
Roles with Permission: Content Moderator, Encoder, Admin
Parameters
| Name | Required | Rules |
|---|---|---|
| name | Yes | string, max:192 |
| slug | Yes | string, max:192, regex:/^[\pL\pM\pN/_-]+$/u, unique |
| body | Yes | string, max:16777215 |
Response
{
page: {
id: id,
name: "name",
slug: "slug",
body: "body",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at"
}
}
Example
curl -X POST -H "Authorization: Bearer {token}" https://api.animethemes.moe/page/