Manage website footer components, links, and footer-related operations in the CMS system.
/api/cms-footers
The CMS Footers API provides endpoints for managing website footer components including creation, editing, activation, and listing. Supports multiple footer variations with activation workflow.
Creates a new footer component.
{
"name": "Main Footer v1",
"html": "",
"css": "footer { background: #333; color: #fff; }",
"isActive": false,
"description": "Main website footer with links"
}
{
"id": "footer_123",
"name": "Main Footer v1",
"isActive": false,
"createdAt": "2026-06-02T10:30:00Z"
}
Gets footer component details by ID.
| Parameter | Type |
|---|---|
| id | string |
{
"id": "footer_123",
"name": "Main Footer v1",
"html": "",
"css": "footer { background: #333; color: #fff; }",
"isActive": false,
"description": "Main website footer with links",
"createdAt": "2026-06-02T10:30:00Z"
}
Gets all footer components with pagination.
| Parameter | Type | Description |
|---|---|---|
| $skip | integer | Skip n records |
| $top | integer | Take n records |
{
"value": [
{
"id": "footer_123",
"name": "Main Footer v1",
"isActive": true,
"createdAt": "2026-06-02T10:30:00Z"
}
],
"count": 8
}
Updates footer component details.
{
"name": "Main Footer v2",
"html": "",
"css": "footer { background: #2c2c2c; color: #fff; }",
"description": "Updated main footer"
}
{
"id": "footer_123",
"name": "Main Footer v2",
"updatedAt": "2026-06-02T11:00:00Z"
}
Soft deletes a footer component.
{
"success": true,
"message": "Footer deleted"
}
Activates a footer component for public use (deactivates others).
{
"id": "footer_123",
"isActive": true,
"activatedAt": "2026-06-02T11:05:00Z"
}
| Code | HTTP Status | Description |
|---|---|---|
| FOOTER_NOT_FOUND | 404 | Footer component does not exist |
| INVALID_HTML | 400 | Invalid HTML content |
| DUPLICATE_NAME | 409 | Footer name already exists |