API reference
completeVideoUpload
Validate part sizes and publish the original video. Safe to retry after a lost response. Required permission: RestaurantRead
completeVideoUpload(
restaurantId: ID!
token: String!
parts: [CompletedVideoUploadPartInput!]!
): URLArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
token |
String! |
|
parts |
[CompletedVideoUploadPartInput!]! |
Returns
URL — Represents a URL which is forced to start with a valid protocol
Example
mutation CompleteVideoUpload($restaurantId: ID!, $token: String!, $parts: [CompletedVideoUploadPartInput!]!) {
completeVideoUpload(restaurantId: $restaurantId, token: $token, parts: $parts)
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { completeVideoUpload(...) { __typename } }"}'