API reference

completeVideoUpload

Validate part sizes and publish the original video. Safe to retry after a lost response. Required permission: RestaurantRead

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

Arguments

Name Type Description
restaurantId ID!
token String!
parts [CompletedVideoUploadPartInput!]!

Returns

URL — 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 } }"}'