API reference

abortVideoUpload

Cancel an incomplete upload. Repeated cancellation is harmless; completed videos are not deleted. Required permission: RestaurantRead

graphql
abortVideoUpload(
  restaurantId: ID!
  token: String!
): Void

Arguments

Name Type Description
restaurantId ID!
token String!

Returns

Void

Example

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