Skip to content

Get Idle Sleep Setting

GET
/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/idle-sleep
curl --request GET \
--url https://dashboard.quantcdn.io/api/v3/organizations/example/applications/example/environments/example/idle-sleep \
--header 'Authorization: Bearer <token>'

Retrieves the idle sleep setting and the current sleep state for the environment.

organisation
required
string
application
required
string
environment
required
string

Idle sleep setting and state.

Media typeapplication/json
object
enabled
required
boolean
idleMinutes
required
integer
nullable
state
required
string
Allowed values: awake sleeping waking
stateChangedAt
required
string format: date-time
nullable
Example
{
"state": "awake"
}

The caller lacks the required permission or token scope.

Organisation, application or environment not found.