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