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

# Add Favourite

> This endpoint allows the user to add a specific media item as a favorite.



## OpenAPI

````yaml post /3/account/{account_id}/favorite
openapi: 3.0.3
info:
  title: The Movie Database
  description: Reference
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.themoviedb.org
security:
  - bearerAuth: []
tags:
  - name: ACCOUNT
  - name: AUTHENTICATION
  - name: CERTIFICATION
  - name: CHANGES
  - name: COLLECTION
  - name: COMPANIES
  - name: CONFIGURATION
  - name: CREDITS
  - name: DISCOVER
  - name: FIND
  - name: GENRES
  - name: GUEST SESSION
  - name: KEYWORDS
  - name: LISTS
  - name: MOVIE LISTS
  - name: MOVIES
  - name: NETWORK
  - name: PEOPLE
  - name: PEOPLE LISTS
  - name: REVIEWS
  - name: SEARCH
  - name: TRENDING
  - name: TV SERIES LIST
  - name: TV SERIES
  - name: TV SEASONS
  - name: TV EPISODES
  - name: TV EPISODES GROUPS
  - name: WATCH PROVIDERS
paths:
  /3/account/{account_id}/favorite:
    parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: integer
        description: account id of the users
    post:
      tags:
        - ACCOUNT
      summary: Add Favourite
      description: >-
        This endpoint allows the user to add a specific media item as a
        favorite.
      operationId: addFavourite
      parameters:
        - name: session_id
          in: query
          schema:
            type: string
          description: session ID for authentication or tracking purposes
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                favorite:
                  type: boolean
                  description: Set to true to add the media item to favorites.
                  example: true
                media_id:
                  type: number
                  description: The unique identifier of the media item.
                  example: 550
                media_type:
                  type: string
                  description: >-
                    The type of media to be added to favorites e.g movie or tv
                    show
                  example: movie
            examples:
              Add Favourite:
                value:
                  favorite: true
                  media_id: 550
                  media_type: movie
      responses:
        '201':
          description: Add Favourite
          content:
            application/json:
              schema:
                type: object
                properties:
                  status_code:
                    type: number
                    example: 1
                  status_message:
                    type: string
                    example: Success.
                  success:
                    type: boolean
                    example: true
              examples:
                Add Favourite:
                  value:
                    status_code: 1
                    status_message: Success.
                    success: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````