API reference
translateFoodTexts
Required permission: RestaurantMenuWrite
translateFoodTexts(
restaurantId: ID!
input: TranslateFoodTextsInput!
): FoodTextTranslationResultArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
TranslateFoodTextsInput! |
Returns
Example
mutation TranslateFoodTexts($restaurantId: ID!, $input: TranslateFoodTextsInput!) {
translateFoodTexts(restaurantId: $restaurantId, input: $input) {
warnings
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { translateFoodTexts(...) { __typename } }"}'