addedInput schema / properties / body
Added value: +{
+ "additionalProperties": false,
+ "description": "Typed request body for ``POST /pages/{id}``: only the fields set are changed.\n\nA page's address is not among them: :class:`PageMove` renames or relocates a page.",
+ "properties": {
+ "access_policy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "Who may open a page, in a create or update body (``access_policy``).",
+ "properties": {
+ "access_type": {
+ "anyOf": [
+ {
+ "enum": [
+ "inherited",
+ "all_staff",
+ "custom"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "string"
+ }
+ ],
+ "description": "``inherited`` (as the parent), ``all_staff`` or ``custom``."
+ },
+ "all_staff_role": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Role every employee gets under ``all_staff``, e.g. editor."
+ }
+ },
+ "required": [
+ "access_type"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Who may open the page."
+ },
+ "actuality": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "Whether a page is up to date (``actuality`` of an update body).",
+ "properties": {
+ "comment": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Note left with the mark."
+ },
+ "is_actual": {
+ "description": "``True`` marks the page up to date, ``False`` obsolete.",
+ "type": "boolean"
+ },
+ "links": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Links to the up-to-date material."
+ }
+ },
+ "required": [
+ "is_actual"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Mark the page up to date or obsolete."
+ },
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "New body, replacing the whole one."
+ },
+ "owner": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "The new owner of a page (``owner`` of an update body).",
+ "properties": {
+ "user": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "description": "A user by passport ``uid`` or ``cloud_uid``.",
+ "properties": {
+ "cloud_uid": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Cloud uid of the user."
+ },
+ "uid": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Passport uid of the user."
+ }
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The user who becomes the owner."
+ }
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The new owner of the page."
+ },
+ "redirect": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "Where a page should redirect to (``redirect`` of an update body).\n\n``page`` has no default: ``None`` is sent as ``null`` and removes the redirect.",
+ "properties": {
+ "page": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "description": "A page by its numeric ``id`` and its ``slug``.\n\nIn a request either one addresses the page, and ``id`` takes priority when both are given.",
+ "properties": {
+ "id": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Numeric id of the page."
+ },
+ "slug": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Slug of the page, e.g. ``data/x``."
+ }
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The page to redirect to, by id or slug; ``None`` removes the redirect."
+ }
+ },
+ "required": [
+ "page"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Make the page a redirect, or remove its redirect."
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "New title of the page."
+ }
+ },
+ "type": "object"
+}