---
title: "Add a genre to an On Demand page"
method: PUT
path: "/ondemand/pages/{ondemand_id}/genres/{genre_id}"
tags: ["On Demand\\Genres"]
---

# Add a genre to an On Demand page

`PUT /ondemand/pages/{ondemand_id}/genres/{genre_id}`

## Request

- Base URL: `https://api.vimeo.com`
- URL: `https://api.vimeo.com/ondemand/pages/{ondemand_id}/genres/{genre_id}`
- Auth: OAuth 2
  - Authorization code: `/oauth/authorize`, token URL `/oauth/access_token`
  - Client credentials, token URL `/oauth/authorize/client`
  - Scopes: `edit`
- TypeScript: <https://skmtc.dev/vimeo/apis/vimeo-api/docs/ondemand/pages/:ondemand_id/genres/:genre_id/put.ts> (a function with typed inputs; its response is checked against the schema)

Information about this method appears below.

## Path parameters

- `genre_id` string, required
- `ondemand_id` number, required

## Response `201`

The genre was added.

- OnDemandGenre
  - `canonical` string, required: The canonical name or URL slug of the genre.
  - `interactions` object, required
    - `page` object, required: Interactions for On Demand pages that are in this genre.
      - `added` boolean, required: Whether this On Demand genre was added.
      - `options` string[], required: An array of HTTP methods permitted on this URI.
      - `uri` string, required: The URI to access the On Demand page.
  - `link` string, required: The Vimeo URL for this genre.
  - `metadata` object, required
    - `connections` object, required: A collection of information connected to this resource.
      - `pages` object, required: Information about the On Demand pages related to this group.
        - `options` string[], required: An array of HTTP methods permitted on this URI.
        - `uri` string, required: The API URI that resolves to the connection data.
  - `name` string, required: The descriptive name of the genre.
  - `uri` string, required: The relative URI of the On Demand genre.

## Other responses

- `400`: You can't add more than two genres to an On Demand page.
- `403`: You can't modify an On Demand page that you don't own.
- `404`: No such On Demand page or genre exists.

---

[API](https://skmtc.dev/vimeo/apis/vimeo-api.md) - [All operations](https://skmtc.dev/vimeo/apis/vimeo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vimeo/apis/vimeo-api/revisions/ea882e0224a4?raw)
