Delete User/Group Access to a Page

Removes a specific personal access permission from the page by its ID.

Use prevent_selflock=true to prevent accidentally locking the current user out of
the page.

For common headers and authentication methods, see Access to the API. For sample scenarios, see API usage examples.

Request

DELETE

https://api.wiki.yandex.net/v1/pages/{idx}/access/{access_id}

Path parameters

Name

Description

access_id

Type: string

Personal page access permission ID. Pass the id field from the response to the method that grants access, or access_lists.direct[].id from the response to GET /v1/pages/{idx}?fields=access_lists.

Example: ``

idx

Type: integer

Page ID. The value of idx is the same as the id field value in the response to GET /v1/pages?slug=… or POST /v1/pages.

Query parameters

Name

Description

prevent_selflock

Type: boolean

If true, return an error if removing access revokes a co-author's permission to read the page or manage its access.

Default: false

Responses

204 No Content

No Content

Body

application/json
{}

Name

Description