API reference

enterSudoMode

Required permission: Authenticated

graphql
enterSudoMode(
  password: String!
): SudoModeTicket

Arguments

Name Type Description
password String!

Returns

SudoModeTicket

Example

graphql
mutation EnterSudoMode($password: String!) {
  enterSudoMode(password: $password) {
    id
    expiresAt
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { enterSudoMode(...) { __typename } }"}'