API reference
createRestaurantDeliveryLocationShortUrls
Required permission: LabelWrite
createRestaurantDeliveryLocationShortUrls(
restaurantId: ID!
whiteLabelId: ID!
): [RestaurantDeliveryLocationShortUrl!]Arguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
whiteLabelId |
ID! |
Returns
[RestaurantDeliveryLocationShortUrl!]
Example
mutation CreateRestaurantDeliveryLocationShortUrls($restaurantId: ID!, $whiteLabelId: ID!) {
createRestaurantDeliveryLocationShortUrls(restaurantId: $restaurantId, whiteLabelId: $whiteLabelId) {
menuType
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { createRestaurantDeliveryLocationShortUrls(...) { __typename } }"}'