API reference

createRestaurantEntity

Required permission: RestaurantWrite

graphql
createRestaurantEntity(
  restaurantId: ID!
  input: RestaurantEntityInput!
): RestaurantEntity

Arguments

Name Type Description
restaurantId ID!
input RestaurantEntityInput!

Returns

RestaurantEntity

Example

graphql
mutation CreateRestaurantEntity($restaurantId: ID!, $input: RestaurantEntityInput!) {
  createRestaurantEntity(restaurantId: $restaurantId, input: $input) {
    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 { createRestaurantEntity(...) { __typename } }"}'