API reference
activateRestaurant
Required permission: RestaurantSettingsWrite
activateRestaurant(
restaurantId: ID!
code: String
): RestaurantArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
code |
String |
Returns
Example
mutation ActivateRestaurant($restaurantId: ID!) {
activateRestaurant(restaurantId: $restaurantId) {
id
autoAcceptDeliveryHeroOrders
deliveryHeroChainId
deliveryHeroEnabled
deliveryHeroVendorId
deliveryHeroWebhookUrl
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { activateRestaurant(...) { __typename } }"}'