API reference

createRestaurantDeliveryLocationShortUrls

Required permission: LabelWrite

graphql
createRestaurantDeliveryLocationShortUrls(
  restaurantId: ID!
  whiteLabelId: ID!
): [RestaurantDeliveryLocationShortUrl!]

Arguments

Name Type Description
restaurantId ID!
whiteLabelId ID!

Returns

[RestaurantDeliveryLocationShortUrl!]

Example

graphql
mutation CreateRestaurantDeliveryLocationShortUrls($restaurantId: ID!, $whiteLabelId: ID!) {
  createRestaurantDeliveryLocationShortUrls(restaurantId: $restaurantId, whiteLabelId: $whiteLabelId) {
    menuType
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { createRestaurantDeliveryLocationShortUrls(...) { __typename } }"}'