# VideoImport

Type: VideoImport

Schema: [VideoImport](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoimport.md)

- `id` (optional)
  Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
  
  minimum: 1
  
  Example:
  
  ```json
  42
  ```

- `targetUrl` (optional)
  Type: targetUrl, url
  
  remote URL where to find the import's source video
  
  Example:
  
  ```json
  "https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d"
  ```

- `magnetUri` (optional)
  Type: magnetUri, uri
  
  magnet URI allowing to resolve the import's source video
  
  pattern: "/magnet:\\?xt=urn:[a-z0-9]+:[a-z0-9]{32}/i"

- `torrentfile` (optional)
  Type: torrentfile, binary
  
  Torrent file containing only the video file

- `torrentName` (optional)
  Type: string

- `state` (optional)
  Type: VideoImportStateConstant
  
  allOf:
    Reference: [VideoImportStateConstant](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoimportstateconstant.md); Type: VideoImportStateConstant

- `error` (optional)
  Type: string

- `createdAt` (optional)
  Type: string, date-time

- `updatedAt` (optional)
  Type: string, date-time

- `video` (optional)
  Type: Video; nullable
  
  allOf:
    Reference: [Video](https://sourcey-peertube.pages.dev/api-rest-reference/models/video.md); Type: Video