> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zype.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Self Hosted Video

Create and add a Self Hosted Video to your library

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Platform",
    "version": "1.0.0",
    "description": ""
  },
  "servers": [
    {
      "url": "https://api.zype.com/"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "api_key",
        "in": "query"
      }
    }
  },
  "paths": {
    "/videos/self_hosted": {
      "post": {
        "tags": [
          "Videos"
        ],
        "summary": "Create Self Hosted Video",
        "description": "Create and add a Self Hosted Video to your library",
        "operationId": "createSelfHostedVideo",
        "parameters": [],
        "requestBody": {
          "description": "",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "SelfHostedVideoRequest",
                "type": "object",
                "required": [
                  "video"
                ],
                "properties": {
                  "video": {
                    "title": "SelfHostedVideoProperties",
                    "required": [
                      "title",
                      "url"
                    ],
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string",
                        "description": "URL to self hosted video file."
                      },
                      "title": {
                        "type": "string",
                        "description": "Title of the video"
                      },
                      "description": {
                        "type": "string",
                        "description": "Full length description of the video"
                      },
                      "auto_add": {
                        "type": "boolean",
                        "description": "Indicates if the video should be automatically added to the library"
                      },
                      "auto_active": {
                        "type": "boolean",
                        "description": "Indicates if the video should be automatically set to active"
                      },
                      "live_event": {
                        "type": "boolean",
                        "description": "Indicates if the video is a live event"
                      },
                      "enable_at": {
                        "type": "string",
                        "description": "Timestamp of when your video will become active"
                      },
                      "disable_at": {
                        "type": "string",
                        "description": "Timestamp of when your video will become inactive"
                      },
                      "on_air_at": {
                        "type": "string",
                        "description": "Timestamp of when your video will go on air"
                      },
                      "off_air_at": {
                        "type": "string",
                        "description": "Timestamp of when your video will go off air"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1videos/post/responses/201/content/application~1json/schema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1videos/get/responses/422/content/application~1json/schema"
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  }
}
```