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

# Update player settings

> Updates the player settings for a project



## OpenAPI

````yaml put /projects/{project_id}/player_settings
openapi: 3.0.1
info:
  title: BeyondWords REST API
  description: |-
    This is the documentation for the BeyondWords REST API.
              You can use this API to use BeyondWords programmatically.
              You can get your API Key and Project ID for each project in the Project settings tab in the BeyondWords
              <a href="https://dash.beyondwords.io/dashboard">dashboard</a>.
  version: 1.0.0
servers:
  - url: https://api.beyondwords.io/v1
security: []
paths:
  /projects/{project_id}/player_settings:
    parameters:
      - name: project_id
        in: path
        description: The numeric ID of your project
        required: true
        schema:
          type: string
    put:
      tags:
        - Player settings
      summary: Update
      description: Updates the player settings for a project
      operationId: player_settings#update
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyPlayerSettings'
            examples:
              example:
                $ref: '#/components/examples/requestBodyPlayerSettingsRequestExample'
      responses:
        '200':
          description: OK
          content:
            application/json:
              examples:
                example:
                  $ref: '#/components/examples/playerSettingsExample'
              schema:
                $ref: '#/components/schemas/playerSettingsModel'
      security:
        - apiKey: []
components:
  schemas:
    requestBodyPlayerSettings:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether the player distribution is on or off
        player_version:
          type: string
          enum:
            - '0'
            - '1'
          description: >-
            The player version to use. Possible values are `0` for legacy and
            `1` for the current
        player_style:
          type: string
          enum:
            - default
            - small
            - standard
            - large
            - video
          description: >-
            The style of user interface to show for the player. Possible values
            are `default`, `small`, `standard`, `large`, or `video`
        playlist_style:
          type: string
          description: >-
            Controls playlist visibility and the maximum visible desktop and
            mobile rows. For example, `auto-5-5` shows playlists automatically
            with five desktop and mobile rows
        playlist_toggle:
          type: string
          enum:
            - auto
            - show
            - hide
          description: >-
            Controls whether the playlist toggle is shown. Possible values are
            `auto`, `show`, or `hide`
        player_title:
          type: string
          description: The title to show in the `large` player when there isn't a playlist
          nullable: true
        call_to_action:
          type: string
          description: The text prompt to show on the player
        image_url:
          type: string
          description: An image to show in the player instead of the content's image
          nullable: true
        persistent_ad_image:
          type: boolean
          description: >-
            Whether to show clickable ad images in the player when the ad isn't
            playing
          nullable: true
        theme:
          type: string
          description: >-
            The color theme to use for the player. The color theme to use for
            the player. Possible values are `auto`, `dark`, or `light`
          enum:
            - auto
            - dark
            - light
        dark_theme:
          $ref: '#/components/schemas/playerColorThemeModel'
          description: The dark theme colors
        light_theme:
          $ref: '#/components/schemas/playerColorThemeModel'
          description: The light theme colors
        video_theme:
          $ref: '#/components/schemas/videoColorThemeModel'
          description: The video theme colors
        title_enabled:
          type: boolean
          description: >-
            Whether to always show the content's title (e.g. instead of the
            call_to_action)
        image_enabled:
          type: boolean
          description: Whether to show or hide the image in the player
          deprecated: true
        widget_style:
          type: string
          enum:
            - none
            - small
            - standard
            - large
            - video
          description: >-
            The style of user interface to show for the widget at the bottom of
            the screen. Possible values are `none`, `small`, `standard`,
            `large`, `video` The widget appears once you scroll past the player
            in the page.
        widget_position:
          type: string
          enum:
            - auto
            - left
            - center
            - right
          description: >-
            The side of the screen on which to show the widget. Possible values
            are `auto`, `left`, `center`, `right` The 'auto' position places the
            standard player in the center, otherwise to the right.
        segment_playback_enabled:
          type: boolean
          description: >-
            Whether to allow playback by clicking on a segment (i.e. a
            paragraph) on the page
        segment_highlights_enabled:
          type: boolean
          description: Whether segments should be highlighted in time with content playback
        skip_button_style:
          type: string
          description: >-
            The style of skip buttons to show in the player. Possible values are
            `segments` or `seconds` You can specify the number of seconds to
            skip, e.g. `seconds-15` or `seconds-15-30`
        intro_url:
          type: string
          nullable: true
          description: >-
            The URL of an intro audio file to play before all content in the
            player
        outro_url:
          type: string
          description: >-
            The URL of an outro audio file to play after all content in the
            player.
          nullable: true
        intro_outro_enabled:
          type: boolean
          description: >-
            Whether or not the intro and outro should be played. The default is
            `false`
          deprecated: true
        download_button_enabled:
          type: boolean
          description: >-
            Whether to show a download button next to each playlist item in the
            player
        analytics_custom_url:
          type: string
          description: Custom analytics server URL
          nullable: true
        analytics_tag_enabled:
          type: string
          description: Google Analytics tag enabled
          nullable: true
        analytics_tag:
          type: string
          description: Google Analytics tag
          nullable: true
        logo_icon_enabled:
          type: boolean
          description: Whether to show the BeyondWords logo in the player
        word_highlights_enabled:
          type: boolean
        continuous_playback_mode:
          type: string
          enum:
            - none
            - recent
          description: The continuous playback mode. Possible values are `none` or `recent`
        outro_playback_mode:
          type: string
          enum:
            - after-all
            - after-each
          description: >-
            The outro playback mode. Possible values are `after-all` or
            `after-each`
        radius:
          type: integer
          description: >-
            The corner radius of the player, in pixels. The default is `8`. Only
            affects players with the default player_style
        disclosure_text:
          type: string
          nullable: true
          description: >-
            The disclosure text to show in the player. Only affects players with
            the default player_style
        disclosure_link:
          type: string
          nullable: true
          description: >-
            The URL the disclosure text links to. Only affects players with the
            default player_style
        agent_avatar_url:
          type: string
          nullable: true
          description: The URL of an avatar image to show for the agent in the player
        agent_placeholder:
          type: string
          nullable: true
          description: The placeholder text to show in the agent input field in the player
        agent_shortcuts:
          type: array
          description: >-
            Suggested prompts to show in the agent user interface in the player.
            The default is an empty array
          items:
            type: string
        info_text:
          type: string
          nullable: true
          description: >-
            The informational text to show in the agent user interface in the
            player
        variants:
          type: array
          description: >-
            The content variants to load in the player. Possible values are
            `article` and `summary`. The default is `["article"]`
          items:
            type: string
            enum:
              - article
              - summary
        embed_mode:
          type: string
          enum:
            - audio
            - audio-agent
            - agent
          description: >-
            The user interface mode of the player. Possible values are `audio`,
            `audio-agent`, or `agent`. The default is `audio`
        widget_embed_mode:
          type: string
          enum:
            - auto
            - audio
            - audio-agent
            - agent
          description: >-
            The user interface mode of the widget. Possible values are `auto`,
            `audio`, `audio-agent`, or `agent`. The `auto` mode follows the
            embed_mode of the player. The default is `auto`
        agent_voice_enabled:
          type: boolean
          description: >-
            Whether voice conversations with the agent are enabled in the
            player. The default is `true`
    playerSettingsModel:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether the player distribution is on or off
        player_version:
          type: string
          enum:
            - '0'
            - '1'
          description: >-
            The player version to use. Possible values are `0` for legacy and
            `1` for the current
        player_style:
          type: string
          enum:
            - default
            - small
            - standard
            - large
            - video
          description: >-
            The style of user interface to show for the player. Possible values
            are `default`, `small`, `standard`, `large`, or `video`
        playlist_style:
          type: string
          description: >-
            Controls playlist visibility and the maximum visible desktop and
            mobile rows. For example, `auto-5-5` shows playlists automatically
            with five desktop and mobile rows
        playlist_toggle:
          type: string
          enum:
            - auto
            - show
            - hide
          description: >-
            Controls whether the playlist toggle is shown. Possible values are
            `auto`, `show`, or `hide`
        player_title:
          type: string
          description: The title to show in the `large` player when there isn't a playlist
          nullable: true
        call_to_action:
          type: string
          description: The text prompt to show on the player
        image_url:
          type: string
          description: An image to show in the player instead of the content's image
          nullable: true
        theme:
          type: string
          enum:
            - auto
            - dark
            - light
          description: >-
            The color theme to use for the player. Possible values are `auto`,
            `dark`, or `light` The 'auto' theme is based on the user's
            light/dark mode system preference.
        dark_theme:
          $ref: '#/components/schemas/playerColorThemeModel'
          description: The dark theme colors
        light_theme:
          $ref: '#/components/schemas/playerColorThemeModel'
          description: The light theme colors
        video_theme:
          $ref: '#/components/schemas/videoColorThemeModel'
          description: The video theme colors
        title_enabled:
          type: boolean
          description: >-
            Whether to always show the content's title (e.g. instead of the
            call_to_action)
        image_enabled:
          type: boolean
          description: Whether to show or hide the image in the player
          deprecated: true
        persistent_ad_image:
          type: boolean
          description: >-
            Whether to show clickable ad images in the player when the ad isn't
            playing
        widget_style:
          type: string
          enum:
            - none
            - small
            - standard
            - large
            - video
          description: >-
            The style of user interface to show for the widget at the bottom of
            the screen. Possible values are `none`, `small`, `standard`,
            `large`, `video` The widget appears once you scroll past the player
            in the page.
        widget_position:
          type: string
          enum:
            - auto
            - left
            - center
            - right
          description: >-
            The side of the screen on which to show the widget. Possible values
            are `auto`, `left`, `center`, `right` The 'auto' position places the
            standard player in the center, otherwise to the right.
        segment_playback_enabled:
          type: boolean
          description: >-
            Whether to allow playback by clicking on a segment (i.e. a
            paragraph) on the page
        segment_highlights_enabled:
          type: boolean
          description: Whether segments should be highlighted in time with content playback
        skip_button_style:
          type: string
          description: >-
            The style of skip buttons to show in the player. Possible values are
            `segments` or `seconds` You can specify the number of seconds to
            skip, e.g. `seconds-15` or `seconds-15-30`
        intros_outros:
          type: array
          description: The URLs of intros and outros audio files
          items:
            type: object
            properties:
              placement:
                type: string
              audio:
                type: array
                items:
                  type: object
                  properties:
                    url:
                      type: string
              video:
                type: array
                items:
                  type: object
                  properties:
                    url:
                      type: string
        intro_url:
          type: string
          nullable: true
          description: >-
            The URL of an intro audio file to play before all content in the
            player
        outro_url:
          type: string
          nullable: true
          description: >-
            The URL of an outro audio file to play after all content in the
            player
        intro_outro_enabled:
          type: boolean
          description: >-
            Whether or not the intro and outro should be played. The default is
            `false`
          deprecated: true
        download_button_enabled:
          type: boolean
          description: >-
            Whether to show a download button next to each playlist item in the
            player.
        logo_icon_enabled:
          type: boolean
          description: Whether to show the BeyondWords logo in the player.
        analytics_enabled:
          type: boolean
          description: Analytics enabled.
        analytics_uuid_enabled:
          type: boolean
          description: Analytics uuid enabled.
        analytics_url:
          type: string
          description: Analytics server URL
        analytics_custom_url:
          type: string
          description: Custom analytics server URL
          nullable: true
        analytics_id:
          type: integer
          description: Analytics ID
        analytics_tag_enabled:
          type: boolean
          description: Analytics tag enabled
        analytics_tag:
          type: string
          description: Google Analytics tag
          nullable: true
        updated:
          type: string
          description: Time at which the object was updated (ISO 8601)
        word_highlights_enabled:
          type: boolean
        continuous_playback_mode:
          type: string
          enum:
            - none
            - recent
          description: The continuous playback mode. Possible values are `none` or `recent`
        outro_playback_mode:
          type: string
          enum:
            - after-all
            - after-each
          description: >-
            The outro playback mode. Possible values are `after-all` or
            `after-each`
        radius:
          type: integer
          description: >-
            The corner radius of the player, in pixels. The default is `8`. Only
            affects players with the default player_style
        disclosure_text:
          type: string
          nullable: true
          description: >-
            The disclosure text to show in the player. Only affects players with
            the default player_style
        disclosure_link:
          type: string
          nullable: true
          description: >-
            The URL the disclosure text links to. Only affects players with the
            default player_style
        agent_avatar_url:
          type: string
          nullable: true
          description: The URL of an avatar image to show for the agent in the player
        agent_placeholder:
          type: string
          nullable: true
          description: The placeholder text to show in the agent input field in the player
        agent_shortcuts:
          type: array
          description: >-
            Suggested prompts to show in the agent user interface in the player.
            The default is an empty array
          items:
            type: string
        info_text:
          type: string
          nullable: true
          description: >-
            The informational text to show in the agent user interface in the
            player
        variants:
          type: array
          description: >-
            The content variants to load in the player. Possible values are
            `article` and `summary`. The default is `["article"]`
          items:
            type: string
            enum:
              - article
              - summary
        embed_mode:
          type: string
          enum:
            - audio
            - audio-agent
            - agent
          description: >-
            The user interface mode of the player. Possible values are `audio`,
            `audio-agent`, or `agent`. The default is `audio`
        widget_embed_mode:
          type: string
          enum:
            - auto
            - audio
            - audio-agent
            - agent
          description: >-
            The user interface mode of the widget. Possible values are `auto`,
            `audio`, `audio-agent`, or `agent`. The `auto` mode follows the
            embed_mode of the player. The default is `auto`
        agent_voice_enabled:
          type: boolean
          description: >-
            Whether voice conversations with the agent are enabled in the
            player. The default is `true`
    playerColorThemeModel:
      type: object
      description: >-
        A complete literal player color palette. Values are passed to the player
        as supplied.
      properties:
        background_color:
          type: string
          description: The player surface color
        text_color:
          type: string
          description: The primary text color
        secondary_text_color:
          type: string
          description: >-
            The secondary text, metadata, caption, placeholder, and
            disabled-copy color
        icon_color:
          type: string
          description: The transport and utility control color
        subtle_color:
          type: string
          description: >-
            The progress-track, divider, skeleton, citation-border, and
            quiet-border color
        link_color:
          type: string
          description: The link, call-to-action, citation, and underline color
        highlight_color:
          type: string
          description: The section highlight color
        word_highlight_color:
          type: string
          description: The current-word highlight color
        agent_color:
          type: string
          description: The agent color or CSS background gradient
        accent_color:
          type: string
          description: The user-message background color
        accent_text_color:
          type: string
          description: The user-message text color
    videoColorThemeModel:
      type: object
      description: >-
        A complete literal video-control color palette. Values are passed to the
        player as supplied.
      properties:
        background_color:
          type: string
          description: The video surface color
        text_color:
          type: string
          description: The video text color
        icon_color:
          type: string
          description: The video control icon color
        subtle_color:
          type: string
          description: The video subtle control color
  examples:
    requestBodyPlayerSettingsRequestExample:
      summary: A sample player settings request
      value:
        player_version: '1'
        player_style: standard
        playlist_style: auto-5-5
        playlist_toggle: auto
        player_Title: My project
        call_to_action: Listen to this article
        image_url: https://example.com/image.jpeg
        theme: auto
        dark_theme:
          background_color: '#212121'
          text_color: '#fafafa'
          secondary_text_color: '#989898'
          icon_color: '#fafafa'
          subtle_color: rgba(250, 250, 250, 0.18)
          link_color: '#af6cfd'
          highlight_color: rgba(164, 255, 0, 0.2)
          word_highlight_color: rgba(164, 255, 0, 0.4)
          agent_color: 'linear-gradient(100deg, #943bfc, #e23ad0)'
          accent_color: '#373737'
          accent_text_color: '#fafafa'
        light_theme:
          background_color: '#f5f5f5'
          text_color: '#212121'
          secondary_text_color: '#6d6d6d'
          icon_color: '#212121'
          subtle_color: rgba(33, 33, 33, 0.1)
          link_color: '#8d38ef'
          highlight_color: rgba(164, 255, 0, 0.2)
          word_highlight_color: rgba(164, 255, 0, 0.8)
          agent_color: 'linear-gradient(100deg, #943bfc, #e23ad0)'
          accent_color: '#ffffff'
          accent_text_color: '#212121'
        video_theme:
          background_color: '#000000'
          text_color: '#ffffff'
          icon_color: '#ffffff'
          subtle_color: rgba(255, 255, 255, 0.3)
        title_enabled: false
        image_enabled: false
        persistent_ad_image: false
        widget_style: small
        widget_position: auto
        segment_playback_enabled: true
        segment_highlights_enabled: true
        skip_button_style: seconds-15-30
        intro_url: https://example.com/intro.mp3
        outro_url: https://example.com/outro.mp3
        intro_outro_enabled: true
        download_button_enabled: false
        logo_icon_enabled: true
        variants:
          - article
        embed_mode: audio
        widget_embed_mode: auto
        agent_voice_enabled: true
        continuous_playback_mode: none
        outro_playback_mode: after-all
        radius: 8
        disclosure_text: Powered by AI
        disclosure_link: https://example.com/disclosure
        agent_avatar_url: https://example.com/avatar.jpeg
        agent_placeholder: Ask about this article, or anything we've covered…
        agent_shortcuts:
          - What are today's headlines?
        info_text: AI can make mistakes
    playerSettingsExample:
      summary: A sample player settings response
      value:
        player_version: '1'
        player_style: standard
        playlist_style: auto-5-5
        playlist_toggle: auto
        player_Title: My Project
        call_to_action: Listen to this article
        image_url: https://example.com/image.jpeg
        theme: auto
        dark_theme:
          background_color: '#212121'
          text_color: '#fafafa'
          secondary_text_color: '#989898'
          icon_color: '#fafafa'
          subtle_color: rgba(250, 250, 250, 0.18)
          link_color: '#af6cfd'
          highlight_color: rgba(164, 255, 0, 0.2)
          word_highlight_color: rgba(164, 255, 0, 0.4)
          agent_color: 'linear-gradient(100deg, #943bfc, #e23ad0)'
          accent_color: '#373737'
          accent_text_color: '#fafafa'
        light_theme:
          background_color: '#f5f5f5'
          text_color: '#212121'
          secondary_text_color: '#6d6d6d'
          icon_color: '#212121'
          subtle_color: rgba(33, 33, 33, 0.1)
          link_color: '#8d38ef'
          highlight_color: rgba(164, 255, 0, 0.2)
          word_highlight_color: rgba(164, 255, 0, 0.8)
          agent_color: 'linear-gradient(100deg, #943bfc, #e23ad0)'
          accent_color: '#ffffff'
          accent_text_color: '#212121'
        video_theme:
          background_color: '#000000'
          text_color: '#ffffff'
          icon_color: '#ffffff'
          subtle_color: rgba(255, 255, 255, 0.3)
        title_enabled: false
        image_enabled: false
        persistent_ad_image: false
        widget_style: standard
        widget_position: auto
        segment_playback_enabled: true
        segment_highlights_enabled: true
        skip_button_style: seconds-15-30
        intro_url: https://example.com/intro.mp3
        outro_url: https://example.com/outro.mp3
        intro_outro_enabled: false
        download_button_enabled: false
        logo_icon_enabled: true
        analytics_enabled: false
        analytics_uuid_enabled: true
        analytics_url: https://metrics.beyondwords.io
        analytics_custom_url: https://custom_metrics.beyondwords.io
        analytics_id: 123
        analytics_tag_enabled: true
        analytics_tag: UA-123
        continuous_playback_mode: none
        outro_playback_mode: after-all
        radius: 8
        disclosure_text: Powered by AI
        disclosure_link: https://example.com/disclosure
        agent_avatar_url: https://example.com/avatar.jpeg
        agent_placeholder: Ask about this article, or anything we've covered…
        agent_shortcuts:
          - What are today's headlines?
        info_text: AI can make mistakes
        variants:
          - article
        embed_mode: audio
        widget_embed_mode: auto
        agent_voice_enabled: true
        updated: 2023-01-01 00:00:00 UTC
  securitySchemes:
    apiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.