POST/documents/{documentId}/peer-owners/allow-restore
Allow members to restore lost peer history after a billing purge
Operation documents.allowPeerRestore
Description
Authorizes or revokes member restoration of pre-purge peer history on a recovered personal-organization document. Only the personal organization's owner may toggle this flag. When enabled, any authorized writer may replay lost operations up to each peer's pre-purge frontier without claiming ownership of that peer.
Authentication
Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
documentId | path | string | required
|
Request body
application/jsonDocumentPeerRestoreAllowRequest
Authorizes or revokes bounded member restoration of pre-purge peer history on a recovered document.
1 field
allowMemberRestorebooleanrequiredTrue to let authorized writers replay lost operations up to each pre-purge peer frontier without claiming ownership; false to restrict restoration to each peer's owner and the organization owner.
Other fields are allowed.
Responses
200 OK
application/jsonDocumentPeerRestoreAllowResponse
Confirms the updated member-restoration policy on a recovered document's pre-purge peer rows.
3 fields
allowMemberRestorebooleanrequiredThe applied member-restoration flag.
documentIdstringrequiredDocument id whose pre-purge peer-owner rows were updated.
updatedPeerCountintegerrequired- at least 0
Number of pre-purge peer-owner rows updated for the caller.
Other fields are allowed.
Other responses
| Status | Meaning | Body |
|---|---|---|
| 400 | Bad Request |
|
| 401 | Unauthorized |
|
| 402 | Payment Required |
|
| 403 | Forbidden |
|
| 404 | Not Found |
|
| 409 | Conflict |
|
| 500 | Internal Server Error |
|
| 503 | Service Unavailable |
|