API reference

updateRestaurantEntity

Required permission: RestaurantWrite

graphql
updateRestaurantEntity(
  restaurantId: ID!
  restaurantEntityId: ID!
  patch: RestaurantEntityPatch!
  options: RestaurantEntityUpdateOptions
): RestaurantEntity

Arguments

Name Type Description
restaurantId ID!
restaurantEntityId ID!
patch RestaurantEntityPatch!
options RestaurantEntityUpdateOptions

Returns

RestaurantEntity

Example

graphql
mutation UpdateRestaurantEntity($restaurantId: ID!, $restaurantEntityId: ID!, $patch: RestaurantEntityPatch!) {
  updateRestaurantEntity(restaurantId: $restaurantId, restaurantEntityId: $restaurantEntityId, patch: $patch) {
    id
    class
    createdAt
    updatedAt
    visibility
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateRestaurantEntity(...) { __typename } }"}'