---
title: "Update a series"
method: PATCH
path: "/v2/sites/{site_id}/series/{series_id}/"
tags: ["series"]
---

# Update a series

`PATCH /v2/sites/{site_id}/series/{series_id}/`

## Path parameters

- `site_id` string, required — Unique identifier for a resource
- `series_id` string, required — Unique identifier for a resource

## Request body

- object
  - `metadata` SeriesResourceMetadata
    - `sort` object — Dictates the order in which seasons and episodes are displayed to the viewer
      - `season` 'asc' | 'dsc' — Order in which seasons are displayed to the viewer **Possible values**: - `asc`: The first season of the series is shown first. - `dsc`: The most recent season of the series is shown first.
      - `episode` 'asc' | 'dsc' — Order in which episodes are displayed to the viewer **Possible values**: - `asc`: The first episode of the series or season is shown first. - `dsc`: The most recent episode of the series or season is shown first.
  - `relationships` SeriesResourceRelationship
    - `media` object[] — List of media IDs and the associated episode number for each
      - `id` string, required — Unique identifier for a resource
      - `episode_number` number, required — Episode number of the media

## Response `200`

Resource successfully updated

- SeriesResourceRead
  - `schema` string
  - `id` string — Unique identifier for a resource
  - `created` string — Date and time at which the resource was created
  - `last_modified` string — Date and time at which the resource was most recently modified
  - `type` string — Name of the type of resource.
  - `relationships` object — Ancilliary resources associated to the primary resource being read
    - `media` object[] — List of media IDs and the associated episode number for each
      - `id` string, required — Unique identifier for a resource
      - `episode_number` number, required — Episode number of the media
  - `metadata` SeriesResourceMetadata
    - `sort` object — Dictates the order in which seasons and episodes are displayed to the viewer
      - `season` 'asc' | 'dsc' — Order in which seasons are displayed to the viewer **Possible values**: - `asc`: The first season of the series is shown first. - `dsc`: The most recent season of the series is shown first.
      - `episode` 'asc' | 'dsc' — Order in which episodes are displayed to the viewer **Possible values**: - `asc`: The first episode of the series or season is shown first. - `dsc`: The most recent episode of the series or season is shown first.
  - `episode_count` number — Number of episodes associated with the series
  - `season_count` number — Number of seasons associated with the series
  - `total_duration` number — Total runtime of the series in minutes

## Other responses

- `400` — Bad Request The request either lacks certain attributes or contains malformed/invalid attributes.
- `404` — Not Found The requested asset could not be found.

---

[API](https://skmtc.net/jwplayer/apis/management-api-v2.md) · [All operations](https://skmtc.net/jwplayer/apis/management-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jwplayer/management-api-v2/revisions/180db7cada27/schema)
