mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
1.2 KiB
1.2 KiB
title
| title |
|---|
| Page Update |
Page Update Endpoint
The page update endpoint updates a page and returns the updated page resource.
For example, the /page/encoding?body=Lorem+Ipsum endpoint will update the Encoding page body attribute and return the updated Encoding resource.
URL
PUT|PATCH /page/{slug}
Authentication
Required Permission: update page
Roles with Permission: Wiki Editor, Admin
Parameters
| Name | Required | Rules |
|---|---|---|
| name | No | string, max:192 |
| slug | No | string, max:192, regex:/^[\pL\pM\pN/_-]+$/u, unique |
| body | No | 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"
}
}