---
title: "Video"
description: "Represents a video hosted by Shopline."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/video'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/video.md'
---
# Video

Represents a video hosted by Shopline. 

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`Video`

## Fields

* `alt`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Words or phrases that share the characteristics or content of media.

* `createdAt`

  [Date!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/date.md)

  Date and time of file creation (in ISO 8601 format).

* `duration`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  The duration of the video in milliseconds. Returns null if the status of the video is not READY.

* `id`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  Globally unique ID.

* `mediaContentType`

  [MediaContentType!](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/enums/media-content-type.md)

  Media content type.

* `originalSource`

  [VideoSource](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/video-source.md)

  The original source of the video. Returns null if the status of the video is not READY.

* `preview`

  [MediaPreviewImage](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/media-preview-image.md)

  Preview image for media.

* `updatedAt`

  [Date!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/date.md)

  Date and time of the last update to the file (in ISO 8601 format).

## Schema Definition

```graphql
type Video { 
	alt: String
	createdAt: Date!
	duration: Int
	id: ID!
	mediaContentType: MediaContentType!
	originalSource: VideoSource
	preview: MediaPreviewImage
	updatedAt: Date! 
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

