Skip to content

Get a plan

GET
/api/v1/projects/{projectId}/config/plans/{planId}
curl --request GET \
--url https://app.monitorly.cloud/api/v1/projects/PROJECT_ID/config/plans/PLAN_ID \
--header 'Authorization: Bearer <token>'

A stored plan as Plan a configuration answered it, with appliedAt once applied. Kept for a day after it expires.

projectId
required
string format: uuid

The project’s id.

Example

PROJECT_ID
planId
required
string format: uuid

The plan’s id, from the answer that made it.

Example

PLAN_ID

The plan.

Media typeapplication/json
object
appliedAt

When the plan was applied; null until then. Always sent; optional in the schema because it was added after the first clients.

string | null
changes
required
Array<object>
object
action
required
string
Allowed values: create update delete unchanged
diff
required
Array<object>

One field that differs, by JSON pointer into the resource’s config form; null for an absent side.

object
after
required

Any JSON value.

before
required

Any JSON value.

path
required
string
id

The stored resource; null for creations.

string | null format: uuid
ref
required
string
resourceType
required
string
Allowed values: check status_page maintenance
warnings
required
Array<object>

Something to look at before applying. code: config.drift (changed outside the config since the last apply; apply overwrites it), config.adopts_unmanaged (a resource made in the dashboard becomes managed by config), config.unmanaged_same_name (a new resource has the name of one made in the dashboard).

object
code
required
string
message
required
string
expiresAt
required

Apply before this instant.

string
planId
required
string format: uuid
projectId
required
string format: uuid
prune
required
boolean
summary
required
object
create
required
integer format: int32
delete
required
integer format: int32
unchanged
required
integer format: int32
update
required
integer format: int32

Example

{
"changes": [
{
"action": "create",
"id": "ID",
"resourceType": "check"
}
],
"planId": "PLAN_ID",
"projectId": "PROJECT_ID"
}

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.scope_missing: the token lacks the scope this needs; detail names 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"
}

Not Found.

  • request.not_found: it does not exist, or you cannot see 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"
}

Too Many Requests.

  • token.rate_limited: more than 10 requests a second with this 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"
}
Retry-After
integer
>= 1

Seconds to wait before trying again.