mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-11-12 01:00:15 +01:00
title
| title |
|---|
| Page Store |
Page Store Endpoint
The page store endpoint creates a new page and returns the new page resource.
For example, the /api/page?name=Encoding&slug=encoding&body=Lorem+Ipsum endpoint will create a new Encoding page and return the new Encoding resource.
URL
POST /api/page
Authentication
Required Permission: create page
Roles with Permission: Wiki Editor, 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"
}
}