---
updatedAt: 2026-09-21T22:06:18.000Z
agentTools:
  siteIndex: https://docs.jwplayer.com/llms.txt
  projectIndex: https://docs.jwplayer.com/platform/llms.txt
---

# Create a series

[block:tutorial-tile]
{
  "title": "Create a Series",
  "emoji": "🎬",
  "backgroundColor": "#018FF4",
  "slug": "create-a-series",
  "_id": "632875c88aa6f90d3f019479",
  "id": "632875c88aa6f90d3f019479",
  "link": "https://docs.jwplayer.com/v1.0/recipes/create-a-series"
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "servers": [
    {
      "url": "https://api.jwplayer.com"
    }
  ],
  "info": {
    "version": "0.2",
    "title": "Management API v2",
    "description": "Customer-facing management API. This file only includes documented routes."
  },
  "security": [
    {
      "v2ApiSecret": []
    }
  ],
  "x-explorer-enabled": true,
  "x-proxy-enabled": true,
  "x-samples-enabled": true,
  "x-samples-languages": [
    "python",
    "node",
    "ruby",
    "php",
    "go",
    "java",
    "csharp"
  ],
  "paths": {
    "/v2/sites/{site_id}/series/": {
      "post": {
        "summary": "Create a series",
        "tags": [
          "series"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/siteId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/SeriesResourceWriteCreate"
        },
        "responses": {
          "201": {
            "description": "Resource successfully created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeriesResourceRead"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "siteId": {
        "name": "site_id",
        "description": "Unique alphanumeric ID of the site",
        "in": "path",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/ResourceId"
        }
      }
    },
    "schemas": {
      "SeriesResourceMetadata": {
        "type": "object",
        "properties": {
          "sort": {
            "type": "object",
            "description": "Dictates the order in which seasons and episodes are displayed to the viewer",
            "properties": {
              "season": {
                "description": "Order in which seasons are displayed to the viewer\n\n**Possible values**:\n- `asc`: The first season of the series is shown first.\n- `dsc`: The most recent season of the series is shown first.\n",
                "type": "string",
                "enum": [
                  "asc",
                  "dsc"
                ]
              },
              "episode": {
                "description": "Order in which episodes are displayed to the viewer\n\n**Possible values**:\n- `asc`: The first episode of the series or season is shown first.\n- `dsc`: The most recent episode of the series or season is shown first.\n",
                "type": "string",
                "enum": [
                  "asc",
                  "dsc"
                ]
              }
            }
          }
        }
      },
      "SeriesResourceRelationship": {
        "type": "object",
        "properties": {
          "media": {
            "description": "List of media IDs and the associated episode number for each",
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "episode_number",
                "id"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/MediaId"
                },
                "episode_number": {
                  "type": "number",
                  "description": "Episode number of the media"
                }
              }
            }
          }
        }
      },
      "SeriesResourceRead": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ResourceRead"
          },
          {
            "type": "object",
            "properties": {
              "metadata": {
                "$ref": "#/components/schemas/SeriesResourceMetadata"
              },
              "relationships": {
                "$ref": "#/components/schemas/SeriesResourceRelationship"
              },
              "episode_count": {
                "type": "number",
                "description": "Number of episodes associated with the series"
              },
              "season_count": {
                "type": "number",
                "description": "Number of seasons associated with the series"
              },
              "total_duration": {
                "type": "number",
                "description": "Total runtime of the series in minutes"
              }
            }
          }
        ]
      },
      "ErrorResponse": {
        "type": "array",
        "description": "One or many errors indicating that something prevented the request from being performed successfully",
        "items": {
          "type": "object",
          "properties": {
            "code": {
              "description": "Short machine-readable identifier for the error",
              "type": "string",
              "example": "error_code"
            },
            "description": {
              "description": "Human-readable message explaining the error",
              "type": "string",
              "example": "Something went wrong."
            }
          }
        }
      },
      "MediaId": {
        "description": "ID for Media Resource",
        "$ref": "#/components/schemas/ResourceId"
      },
      "ResourceId": {
        "description": "Unique identifier for a resource",
        "type": "string",
        "minLength": 8,
        "maxLength": 8,
        "example": "Ny05CEfj",
        "pattern": "^[A-Za-z0-9]+$"
      },
      "ResourceRead": {
        "type": "object",
        "properties": {
          "schema": {
            "type": "string",
            "example": "https://schema.jwplayer.com/types/thumbnail.json"
          },
          "id": {
            "$ref": "#/components/schemas/ResourceId"
          },
          "created": {
            "type": "string",
            "description": "Date and time at which the resource was created",
            "example": "2019-09-25T15:29:11.042095+00:00"
          },
          "last_modified": {
            "type": "string",
            "description": "Date and time at which the resource was most recently modified",
            "example": "2019-09-25T15:29:11.042095+00:00"
          },
          "type": {
            "type": "string",
            "description": "Name of the type of resource."
          },
          "relationships": {
            "type": "object",
            "description": "Ancilliary resources associated to the primary resource being read"
          }
        }
      }
    },
    "securitySchemes": {
      "v2ApiSecret": {
        "description": "V2 API secret used for authentication",
        "type": "apiKey",
        "in": "header",
        "name": "Authorization"
      }
    },
    "requestBodies": {
      "SeriesResourceWriteCreate": {
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "metadata": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/SeriesResourceMetadata"
                    },
                    {
                      "type": "object",
                      "required": [
                        "title"
                      ]
                    }
                  ]
                },
                "relationships": {
                  "$ref": "#/components/schemas/SeriesResourceRelationship"
                }
              },
              "required": [
                "metadata"
              ]
            }
          }
        }
      }
    },
    "responses": {
      "400": {
        "description": "Invalid JSON request body",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    }
  }
}
```

# Sibling pages

* [List series](https://docs.jwplayer.com/platform/reference/get_v2-sites-site-id-series.md)
* [Get a series](https://docs.jwplayer.com/platform/reference/get_v2-sites-site-id-series-series-id.md)
* [Update a series](https://docs.jwplayer.com/platform/reference/patch_v2-sites-site-id-series-series-id.md)
* [Delete a series](https://docs.jwplayer.com/platform/reference/delete_v2-sites-site-id-series-series-id.md)
* [List seasons](https://docs.jwplayer.com/platform/reference/get_v2-sites-site-id-series-series-id-seasons.md)
* [Create a season](https://docs.jwplayer.com/platform/reference/post_v2-sites-site-id-series-series-id-seasons.md)
* [Get a season](https://docs.jwplayer.com/platform/reference/get_v2-sites-site-id-series-series-id-seasons-season-id.md)
* [Update a season](https://docs.jwplayer.com/platform/reference/patch_v2-sites-site-id-series-series-id-seasons-season-id.md)
* [Delete a season](https://docs.jwplayer.com/platform/reference/delete_v2-sites-site-id-series-series-id-seasons-season-id.md)