API reference
updateRestaurantEntity
Required permission: RestaurantWrite
updateRestaurantEntity(
restaurantId: ID!
restaurantEntityId: ID!
patch: RestaurantEntityPatch!
options: RestaurantEntityUpdateOptions
): RestaurantEntityArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
restaurantEntityId |
ID! |
|
patch |
RestaurantEntityPatch! |
|
options |
RestaurantEntityUpdateOptions |
Returns
Example
mutation UpdateRestaurantEntity($restaurantId: ID!, $restaurantEntityId: ID!, $patch: RestaurantEntityPatch!) {
updateRestaurantEntity(restaurantId: $restaurantId, restaurantEntityId: $restaurantEntityId, patch: $patch) {
id
class
createdAt
updatedAt
visibility
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updateRestaurantEntity(...) { __typename } }"}'