Skip to content

Get what deleting needs

GET
/api/v1/me/deletion
curl --request GET \
--url https://app.monitorly.cloud/api/v1/me/deletion \
--cookie __Host-monitorly_session=<__Host-monitorly_session>

What deleting the signed-in account would do, what blocks it and what proof it takes.

What deleting would do.

Media typeapplication/json
object
allowed
required

Nothing blocks the deletion: no shared workspace is owned, none of the person’s workspaces is blocked and the account is not the installation owner.

boolean
deletedWorkspaces
required

Workspaces where the person is the only member: stopped and hidden with the account, their data kept.

Array<object>
object
blocked
required

Blocked by the installation’s administrator: it can only be read, so the account can be deleted only after the unblock (403 workspace.blocked).

boolean
checks
required
integer format: int64
id
required
string format: uuid
members
required

Members, the person included.

integer format: int64
name
required
string
projects
required
integer format: int64
role
required

The person’s role in it.

string
Allowed values: member admin owner
statusPages
required
integer format: int64
hasPassword
required

The account has a password: DELETE /me takes it as proof.

boolean
installationOwner
required

The installation owner’s account cannot be deleted here.

boolean
leftWorkspaces
required

Workspaces the person leaves; what is in them stays.

Array<object>
object
blocked
required

Blocked by the installation’s administrator: it can only be read, so the account can be deleted only after the unblock (403 workspace.blocked).

boolean
checks
required
integer format: int64
id
required
string format: uuid
members
required

Members, the person included.

integer format: int64
name
required
string
projects
required
integer format: int64
role
required

The person’s role in it.

string
Allowed values: member admin owner
statusPages
required
integer format: int64
needsCode
required

Two-factor sign-in is on: DELETE /me needs a current code.

boolean
reauthProviders
required

Linked providers this installation offers: a re-authentication at one of them (intent reauth) within the last 5 minutes stands in for the password.

Array<string>
reauthenticated
required

A provider re-authentication of this session is recent enough right now.

boolean
sharedWorkspaces
required

Owned workspaces with other members: ownership must go to someone else first.

Array<object>
object
blocked
required

Blocked by the installation’s administrator: it can only be read, so the account can be deleted only after the unblock (403 workspace.blocked).

boolean
checks
required
integer format: int64
id
required
string format: uuid
members
required

Members, the person included.

integer format: int64
name
required
string
projects
required
integer format: int64
role
required

The person’s role in it.

string
Allowed values: member admin owner
statusPages
required
integer format: int64

Example

{
"deletedWorkspaces": [
{
"id": "ID",
"role": "member"
}
],
"leftWorkspaces": [
{
"id": "ID",
"role": "member"
}
],
"sharedWorkspaces": [
{
"id": "ID",
"role": "member"
}
]
}

Bad Request.

  • auth.credentials_conflict: the request carries both a session cookie and a token
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Unauthorized.

  • auth.unauthenticated, auth.session_expired: no session, or it ended
  • token.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Forbidden.

  • auth.forbidden: your role is too low for this
  • token.not_allowed: this operation needs a signed-in session; tokens cannot call it
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}