# abortVideoUpload

> Cancel an incomplete upload. Repeated cancellation is harmless; completed videos are not deleted.

Required permission: RestaurantRead

Source: https://docs.gastrogate.io/docs/api/mutations/abortVideoUpload

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

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `token` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md)! |  |

## Returns

[`Void`](https://docs.gastrogate.io/docs/api/types/Void.md)

## 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 } }"}'
```
