# completeVideoUpload

> Validate part sizes and publish the original video. Safe to retry after a lost response.

Required permission: RestaurantRead

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

```graphql
completeVideoUpload(
  restaurantId: ID!
  token: String!
  parts: [CompletedVideoUploadPartInput!]!
): URL
```

## 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)! |  |
| `parts` | \[[`CompletedVideoUploadPartInput`](https://docs.gastrogate.io/docs/api/types/CompletedVideoUploadPartInput.md)!\]! |  |

## Returns

[`URL`](https://docs.gastrogate.io/docs/api/types/URL.md) — Represents a URL which is forced to start with a valid protocol

## Example

```graphql
mutation CompleteVideoUpload($restaurantId: ID!, $token: String!, $parts: [CompletedVideoUploadPartInput!]!) {
  completeVideoUpload(restaurantId: $restaurantId, token: $token, parts: $parts)
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { completeVideoUpload(...) { __typename } }"}'
```
