Cancel a pending account deletion (session only).
const url = 'https://api.opdns.io/v1/auth/me/undelete';const options = {method: 'POST', headers: {cookie: 'opdns_session=<opdns_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.opdns.io/v1/auth/me/undelete \ --cookie opdns_session=<opdns_session>Needs a sign-in within the last five minutes. The profiles tombstoned by the
deletion request are restored and republished at a new version. Sessions, API
tokens and nodes revoked by the request stay revoked. 409 deletion_started
once the cooling-off is over and erasure has begun.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Cancelled.
object
Example
{ "status": "active"}Not authenticated.
object
Stable machine code.
object
Seconds, repeating the Retry-After header (rate limits, offline nodes).
Example
{ "type": "https://opdns.io/problems/unauthenticated", "title": "Unauthorized", "status": 401, "code": "unauthenticated", "detail": "authentication required", "request_id": "5f2c9a0e7b1d4c38"}Authenticated but not allowed: insufficient_scope, session_required, csrf_rejected, mfa_enrolment_required (restricted session), mfa_required (an operator action, or an admin-scoped token, from a session signed in with the password alone; not in dev), reauth_required (sign in again within five minutes), account_pending_deletion (the account is in its deletion cooling-off).
object
Stable machine code.
object
Seconds, repeating the Retry-After header (rate limits, offline nodes).
Example
{ "type": "https://opdns.io/problems/insufficient_scope", "title": "Forbidden", "status": 403, "code": "insufficient_scope", "detail": "the token lacks the profiles:write scope", "request_id": "5f2c9a0e7b1d4c38"}no_deletion_pending or deletion_started.
object
Stable machine code.
object
Seconds, repeating the Retry-After header (rate limits, offline nodes).
Example
{ "type": "https://opdns.io/problems/no_deletion_pending", "title": "Conflict", "status": 409, "code": "no_deletion_pending", "detail": "no account deletion is scheduled", "request_id": "5f2c9a0e7b1d4c38"}