> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add favorite

> Adds the report or dashboard specified in the request as a favorite for the requesting user. If the specified report or dashboard is already a favorite, the request will succeed, updating the existing favorite's display order if necessary.

A user may have at most 10 favorites for each object type (reports, dashboards); attempting to add more will result in an error. Additionally, the user must have at least VIEW permissions for the target object to favorite it.

**NOTE: This API can only be called from apps with user-level access.** Attempting to call from an app with account-level access (including legacy apps) will fail.

> [accordion] Supported products

> [accordion] Required Scopes

Supports [user-level access](https://developers.hubspot.com/docs/apps/developer-platform/build-apps/authentication/user-level-apps.md).


## OpenAPI

````yaml specs/2027-03-beta/analytics-reporting-v2027-03-beta.json POST /analytics/reporting/2027-03-beta/favorites
openapi: 3.0.1
info:
  title: Analytics Reporting
  description: Basepom for all HubSpot Projects
  version: 2027-03-beta
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: FREE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Dashboards
  - name: Favorites
  - name: Recurring Dashboard Exports
  - name: Recurring Report Exports
  - name: Reports
  - name: Tags
paths:
  /analytics/reporting/2027-03-beta/favorites:
    post:
      tags:
        - Favorites
      summary: Add favorite
      description: >-
        Adds the report or dashboard specified in the request as a favorite for
        the requesting user. If the specified report or dashboard is already a
        favorite, the request will succeed, updating the existing favorite's
        display order if necessary.


        A user may have at most 10 favorites for each object type (reports,
        dashboards); attempting to add more will result in an error.
        Additionally, the user must have at least VIEW permissions for the
        target object to favorite it.


        **NOTE: This API can only be called from apps with user-level access.**
        Attempting to call from an app with account-level access (including
        legacy apps) will fail.
      operationId: >-
        post-/analytics/reporting/2027-03-beta/favorites_/analytics/reporting/2027-03-beta/favorites
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicFavoriteRequest'
        required: true
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicFavorite'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - reporting.full.read
        - oauth2:
            - reporting.full.admin
        - oauth2:
            - crm.hubsql.execute
components:
  schemas:
    PublicFavoriteRequest:
      required:
        - objectId
        - objectType
      type: object
      properties:
        displayOrder:
          type: integer
          description: >-
            A number used to determine where in the overall ordering this
            favorite should be sorted. Optional; favorites without an explicit
            `displayOrder` will be last in the favorite list.
          format: int32
        objectId:
          type: string
          description: The ID of the report or dashboard to favorite.
        objectType:
          type: string
          description: |-
            The type of object to favorite. Possible values are:
            - `DASHBOARD`
            - `REPORT`
          enum:
            - DASHBOARD
            - REPORT
    PublicFavorite:
      required:
        - objectId
        - objectName
        - objectType
      type: object
      properties:
        displayOrder:
          type: integer
          description: >-
            A number used to determine where in the overall ordering this
            favorite should be sorted. Optional; favorites without an explicit
            `displayOrder` will be last in the favorite list.
          format: int32
        objectId:
          type: string
          description: The ID of the favorited report or dashboard.
        objectName:
          type: string
          description: The name of the favorited report or dashboard.
        objectType:
          type: string
          description: |-
            The type of the favorited object. Possible values are:
            - `DASHBOARD`
            - `REPORT`
          enum:
            - DASHBOARD
            - REPORT
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: The error category, represented as a string.
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: >-
            An object providing context about the error condition, with
            additional properties as arrays of strings.
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: >-
            A unique identifier for the request, used for tracking and support
            purposes. It is a string formatted as a UUID.
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: >-
            An array containing further information about the error, with each
            item being an ErrorDetail object.
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            A map of link names to associated URIs containing documentation
            about the error or recommended remediation steps. It is an object
            with string properties.
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate. It is a string.
          example: An error occurred
        subCategory:
          type: string
          description: >-
            A specific category providing more detailed information about the
            error. It is a string.
      description: >-
        Represents an error response returned by the API when an operation
        fails. This component is used in various endpoints to provide detailed
        information about the error encountered.
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: The status code associated with the error detail.
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: >-
            Context about the error condition, represented as an object with
            additional properties that are arrays of strings.
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: The name of the field or parameter in which the error was found.
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate.
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error.
      description: >-
        Represents detailed information about an error that occurred in the API.
        This component is used to provide additional context and specifics about
        errors, typically as part of an error response.
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            crm.hubsql.execute: ''
            reporting.full.admin: ''
            reporting.full.edit: ''
            reporting.full.read: ''
            reporting.full.write: ''
      x-hubspot-app-availability:
        crm.hubsql.execute:
          user:
            - public
            - private
          developer: false
        reporting.full.admin:
          portal:
            - public
            - private
          user:
            - public
            - private
          developer: false
        reporting.full.edit:
          portal:
            - public
            - private
          user:
            - public
            - private
          developer: false
        reporting.full.read:
          portal:
            - public
            - private
          user:
            - public
            - private
          developer: false
        reporting.full.write:
          portal:
            - public
            - private
          user:
            - public
            - private
          developer: false

````