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

# Upsert the authenticated user's Rockbox audio settings. Only provided sections are merged; omitted sections are left unchanged.



## OpenAPI

````yaml /api-reference/openapi.json post /app.rocksky.rockbox.putAudioSettings
openapi: 3.1.0
info:
  title: Rocksky XRPC API
  version: 1.0.0
  description: >-
    Generated from the registered Rocksky XRPC handlers and current lexicons.
    Provider-defined payloads remain open schemas. Some handlers return empty
    fallback objects on service failures. This reference describes the
    repository implementation; production may run an earlier revision.
  license:
    name: MIT License
    identifier: MIT
servers:
  - url: https://api.rocksky.app/xrpc
    description: Rocksky API
security: []
paths:
  /app.rocksky.rockbox.putAudioSettings:
    post:
      tags:
        - app.rocksky.rockbox
      summary: >-
        Upsert the authenticated user's Rockbox audio settings. Only provided
        sections are merged; omitted sections are left unchanged.
      operationId: app.rocksky.rockbox.putAudioSettings
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                crossfade:
                  $ref: >-
                    #/components/schemas/app.rocksky.rockbox.defs__crossfadeSettings
                  description: Crossfade settings to apply.
                equalizer:
                  $ref: >-
                    #/components/schemas/app.rocksky.rockbox.defs__equalizerSettings
                  description: Equalizer settings to apply.
                replayGain:
                  $ref: >-
                    #/components/schemas/app.rocksky.rockbox.defs__replayGainSettings
                  description: Replay gain settings to apply.
                tone:
                  $ref: '#/components/schemas/app.rocksky.rockbox.defs__toneSettings'
                  description: Tone control settings to apply.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/app.rocksky.rockbox.defs__settingsView'
        '400':
          description: Invalid XRPC request or parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/XrpcError'
        default:
          description: XRPC error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/XrpcError'
      security:
        - Bearer: []
components:
  schemas:
    app.rocksky.rockbox.defs__crossfadeSettings:
      type: object
      properties:
        mode:
          type: string
          description: >-
            Crossfade mode: disabled | enabled | shuffle | albumChange |
            trackChange
        fadeInDelay:
          type: integer
          description: Fade-in delay in ms
          minimum: 0
          maximum: 7000
        fadeInDuration:
          type: integer
          description: Fade-in duration in ms
          minimum: 0
          maximum: 15000
        fadeOutDelay:
          type: integer
          description: Fade-out delay in ms
          minimum: 0
          maximum: 7000
        fadeOutDuration:
          type: integer
          description: Fade-out duration in ms
          minimum: 0
          maximum: 15000
        fadeOutMixMode:
          type: string
          description: 'Fade-out mix mode: crossfade | mix'
    app.rocksky.rockbox.defs__equalizerSettings:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether the equalizer is enabled
        precut:
          type: integer
          description: >-
            Pre-amplification cut in tenths of dB applied before EQ bands (e.g.
            -60 = -6.0 dB)
          minimum: -240
          maximum: 0
        bands:
          type: array
          items:
            $ref: '#/components/schemas/app.rocksky.rockbox.defs__equalizerBand'
          description: Up to 10 EQ bands
    app.rocksky.rockbox.defs__replayGainSettings:
      type: object
      properties:
        mode:
          type: string
          description: 'Replay gain mode: disabled | track | album | trackIfShuffling'
        preamp:
          type: integer
          description: Pre-amplification in tenths of dB (e.g. 15 = +1.5 dB)
          minimum: -120
          maximum: 120
        preventClipping:
          type: boolean
          description: Whether to prevent clipping by reducing volume
    app.rocksky.rockbox.defs__toneSettings:
      type: object
      properties:
        bass:
          type: integer
          description: Bass level in dB
          minimum: -24
          maximum: 24
        treble:
          type: integer
          description: Treble level in dB
          minimum: -24
          maximum: 24
        balance:
          type: integer
          description: Left/right balance. Negative = left, positive = right
          minimum: -100
          maximum: 100
        channels:
          type: string
          description: >-
            Channel configuration: stereo | mono | monoLeft | monoRight |
            karaoke | wide
    app.rocksky.rockbox.defs__settingsView:
      type: object
      properties:
        crossfade:
          $ref: '#/components/schemas/app.rocksky.rockbox.defs__crossfadeSettings'
          description: Crossfade settings
        equalizer:
          $ref: '#/components/schemas/app.rocksky.rockbox.defs__equalizerSettings'
          description: Equalizer settings
        replayGain:
          $ref: '#/components/schemas/app.rocksky.rockbox.defs__replayGainSettings'
          description: Replay gain settings
        tone:
          $ref: '#/components/schemas/app.rocksky.rockbox.defs__toneSettings'
          description: Tone control settings (bass, treble, balance, channels)
        createdAt:
          type: string
          description: When this settings record was first created.
          format: date-time
        updatedAt:
          type: string
          description: When this settings record was last updated.
          format: date-time
      required:
        - createdAt
    XrpcError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string
    app.rocksky.rockbox.defs__equalizerBand:
      type: object
      properties:
        frequency:
          type: integer
          description: Center frequency in Hz
          minimum: 20
          maximum: 22000
        gain:
          type: integer
          description: Band gain in tenths of dB (e.g. 30 = +3.0 dB)
          minimum: -240
          maximum: 240
        q:
          type: integer
          description: Q factor × 10 (e.g. 7 = Q 0.7)
          minimum: 5
          maximum: 640
      required:
        - frequency
        - gain
        - q
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: Rocksky bearer token.

````

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