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

# Update a playlist's metadata. Rewrites the app.rocksky.playlist record in place; only the owner may do so.



## OpenAPI

````yaml /api-reference/openapi.json post /app.rocksky.playlist.updatePlaylist
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.playlist.updatePlaylist:
    post:
      tags:
        - app.rocksky.playlist
      summary: >-
        Update a playlist's metadata. Rewrites the app.rocksky.playlist record
        in place; only the owner may do so.
      operationId: app.rocksky.playlist.updatePlaylist
      parameters:
        - name: uri
          in: query
          required: true
          description: The URI of the playlist to update
          schema:
            type: string
            description: The URI of the playlist to update
            x-lexicon-format: at-uri
        - name: name
          in: query
          required: false
          description: The new name of the playlist
          schema:
            type: string
            description: The new name of the playlist
            minLength: 1
            maxLength: 512
        - name: description
          in: query
          required: false
          description: The new description of the playlist
          schema:
            type: string
            description: The new description of the playlist
            maxLength: 256
        - name: pictureUrl
          in: query
          required: false
          description: The new cover image URL for the playlist
          schema:
            type: string
            description: The new cover image URL for the playlist
            format: uri
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  uri:
                    type: string
                    description: The AT-URI of the updated app.rocksky.playlist record.
                    x-lexicon-format: at-uri
                  cid:
                    type: string
                    description: The CID of the updated app.rocksky.playlist record.
                required:
                  - uri
                  - cid
        '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:
    XrpcError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string
  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.