API reference
createRestaurantEntity
Required permission: RestaurantWrite
createRestaurantEntity(
restaurantId: ID!
input: RestaurantEntityInput!
): RestaurantEntityArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
RestaurantEntityInput! |
Returns
Example
mutation CreateRestaurantEntity($restaurantId: ID!, $input: RestaurantEntityInput!) {
createRestaurantEntity(restaurantId: $restaurantId, input: $input) {
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 { createRestaurantEntity(...) { __typename } }"}'