mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
875 B
875 B
title
| title |
|---|
| Page Restore |
Page Restore Endpoint
The page restore endpoint restores a soft deleted page and returns the restored page resource.
For example, the /restore/page/encoding endpoint will restore the soft deleted Encoding page and return the restored Encoding resource.
URL
PATCH /restore/page/{slug}
Authentication
Required Permission: restore page
Roles with Permission: Wiki Editor, Encoder, Admin
Other Requirements: Page must be soft deleted
Parameters
None
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 PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/restore/page/encoding