API reference
enterSudoMode
Required permission: Authenticated
enterSudoMode(
password: String!
): SudoModeTicketArguments
| Name | Type | Description |
|---|---|---|
password |
String! |
Returns
Example
mutation EnterSudoMode($password: String!) {
enterSudoMode(password: $password) {
id
expiresAt
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { enterSudoMode(...) { __typename } }"}'