Skip to main content
PUT
/
pages
/
privacy-policy
Update Privacy Policy
curl --request PUT \
  --url http://localhost:8080/pages/privacy-policy \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "language": "ru",
  "is_enabled": true
}
'
{
  "requested_language": "<string>",
  "language": "<string>",
  "content": "<string>",
  "is_enabled": true,
  "content_pages": [
    "<string>"
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Body

application/json
content
string
required

Новое содержимое страницы

language
string
default:ru

Язык, для которого выполняется обновление

Required string length: 2 - 10
is_enabled
boolean | null

Если указано — обновить статус публикации

Response

Successful Response

Generic representation for rich text informational pages.

requested_language
string
required

Язык, запрошенный клиентом

language
string
required

Фактический язык найденной записи

content
string
required

Полное содержимое страницы

is_enabled
boolean | null

Текущий статус публикации страницы (если применимо)

content_pages
string[]

Содержимое, разбитое на страницы фиксированной длины

created_at
string<date-time> | null

Дата создания записи

updated_at
string<date-time> | null

Дата последнего обновления записи