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
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | Integer | Yes | Unique ID of the page to update |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| title | String | No | Page title |
| slug | Boolean | No | The slug of the page(unique) |
| body | String | No | Body of the page (nullable) |
Example Requests
- 🐍 Python
- 🌐 Curl
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())1curl -X POST "http://www.example.com/api/pages/49" -H "Content-Type: application/json" -d '{
2 "title": "black technology",
3 "slug": "black-tech",
4 "body": "this is the new technology"
5}Response Fields
| Field | Type | Description |
|---|---|---|
| id | Integer | Id of the page(unique) |
| title | String | The title of the page |
| slug | String | The slug related to the page (unique) |
| created_at | String (ISO 8601) | Timestamp when the page was created |
| updated_at | String (ISO 8601) | Timestamp when the page was last updated |
| body | String | Body of the created page (editable in the update endpoint) |
| meta | List Of Object | Meta key-value data (editable in the PageMeta endpoint) |
Meta Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the PageMeta (unique) |
| key | String | The key name of the meta data |
| value_text | String | The text value of the meta data |
| value_file | Object | The file data of the meta data |
Value File Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Id of the file (unique) |
| type | String | Type of the file (image, text, video, ...) |
| name | String | File name (nullable) |
| size | String | Size of the file(nullable) |
| human_readable_size | String | A human readable size for the file |
| f | String | url 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