> ## 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 Rating

> This endpoint allow users to rate a movie and save it to their rated list.



## OpenAPI

````yaml post /3/movie/{movie_id}/rating
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/movie/{movie_id}/rating:
    parameters:
      - name: movie_id
        in: path
        required: true
        schema:
          type: integer
          example: 12
    post:
      tags:
        - MOVIES
      summary: Add Rating
      description: >-
        This endpoint allow users to rate a movie and save it to their rated
        list.
      operationId: rating
      parameters:
        - name: guest_session_id
          in: query
          schema:
            type: string
        - name: session_id
          in: query
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                value:
                  type: number
                  example: 8.5
            examples:
              Rating:
                value:
                  value: 8.5
      responses:
        '201':
          description: Rating
          headers:
            Alt-Svc:
              schema:
                type: string
                example: h3=":443"; ma=86400
            Connection:
              schema:
                type: string
                example: keep-alive
            Content-Length:
              schema:
                type: string
                example: '94'
            Date:
              schema:
                type: string
                example: Mon, 30 Dec 2024 10:54:45 GMT
            Server:
              schema:
                type: string
                example: openresty
            Vary:
              schema:
                type: string
                example: Origin
            Via:
              schema:
                type: string
                example: >-
                  1.1 89a2789e584c965cee4a77ee2a943764.cloudfront.net
                  (CloudFront)
            X-Amz-Cf-Id:
              schema:
                type: string
                example: LxOw41vjrBTPFHWAYHC_kbFd--em8lIiUHygM9-Hryz3psauqVK1Bg==
            X-Amz-Cf-Pop:
              schema:
                type: string
                example: LOS50-P2
            X-Cache:
              schema:
                type: string
                example: Miss from cloudfront
            cache-control:
              schema:
                type: string
                example: public, max-age=0
            etag:
              schema:
                type: string
                example: W/"04302547257ccb7e68844cdd59055002"
            vary:
              schema:
                type: string
                example: accept-encoding
          content:
            application/json:
              schema:
                type: object
                properties:
                  status_code:
                    type: number
                    example: 12
                  status_message:
                    type: string
                    example: The item/record was updated successfully.
                  success:
                    type: boolean
                    example: true
              examples:
                Rating:
                  value:
                    status_code: 12
                    status_message: The item/record was updated successfully.
                    success: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````