Tearleads

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

NameInTypeDetails
documentIdpathstringrequired
  • UUID

Request body

application/jsonDocumentPeerRestoreAllowRequest

Authorizes or revokes bounded member restoration of pre-purge peer history on a recovered document.

1 field
  • allowMemberRestorebooleanrequired

    True 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
  • allowMemberRestorebooleanrequired

    The applied member-restoration flag.

  • documentIdstringrequired

    Document 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

StatusMeaningBody
400Bad Request

application/jsonErrorResponse

401Unauthorized

application/jsonSessionFailureResponse

402Payment Required

application/jsonPaymentRequiredErrorResponse

403Forbidden

application/jsonErrorResponse

404Not Found

application/jsonDocumentMutationFailureResponse

409Conflict

application/jsonDocumentMutationFailureResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse