Skip to main content

Update Page

Update an page

HTTP Request

PATCH/api/pages/:id

Authorization

Authorization

  • Required: Yes
  • Permission: Staff with PagePermission or Admin
  • Permission Code: 3003
  • Authentication: Token-based (Authorization: Token <your_api_key>)

Path Parameters

ParameterTypeRequiredDescription
idIntegerYesUnique ID of the page to update

Request Body

FieldTypeRequiredDescription
titleStringNoPage title
slugBooleanNoThe slug of the page(unique)
bodyStringNoBody of the page (nullable)

Example Requests

1import requests
2response = requests.post('http://www.example.com/api/pages/49', json={
3  "title": "black technology",
4  "slug": "black-tech",
5  "body": "this is the new technology"
6})
7print(response.json())

Response Fields

FieldTypeDescription
idIntegerId of the page(unique)
titleStringThe title of the page
slugStringThe slug related to the page (unique)
created_atString (ISO 8601)Timestamp when the page was created
updated_atString (ISO 8601)Timestamp when the page was last updated
bodyStringBody of the created page (editable in the update endpoint)
metaList Of ObjectMeta key-value data (editable in the PageMeta endpoint)

Meta Data Structure

FieldTypeDescription
idIntegerUnique ID of the PageMeta (unique)
keyStringThe key name of the meta data
value_textStringThe text value of the meta data
value_fileObjectThe file data of the meta data

Value File Structure

FieldTypeDescription
idIntegerId of the file (unique)
typeStringType of the file (image, text, video, ...)
nameStringFile name (nullable)
sizeStringSize of the file(nullable)
human_readable_sizeStringA human readable size for the file
fStringurl to the file

Response Example

{
"id": 49,
"title": "black technology",
"slug": "black-tech",
"created_at": "2025-12-03T17:34:26.098928Z",
"updated_at": "2025-12-03T17:34:26.098936Z",
"body": "this is the new technology",
"meta": []
}

NOTE

  • Updating meta is available throught the page meta endpoints