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

# Update a wishlist

> Changes the title, occasion or notes. To change the `status`, share the wishlist or stop sharing it.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/v1/wishlists/{wishlistId}
openapi: 3.0.0
info:
  title: Onio API
  description: Read and change your Onio wishlists and wishes from your own tools.
  version: 1.2.0
  contact: {}
servers:
  - url: https://web.onio.app
security: []
tags: []
paths:
  /api/v1/wishlists/{wishlistId}:
    patch:
      tags:
        - Wishlists
      summary: Update a wishlist
      description: >-
        Changes the title, occasion or notes. To change the `status`, share the
        wishlist or stop sharing it.
      operationId: updateWishlist
      parameters:
        - name: wishlistId
          required: true
          in: path
          description: The `id` of a wishlist you own.
          schema:
            format: uuid
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWishlist'
      responses:
        '200':
          description: The updated wishlist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Wishlist'
        '400':
          description: An ID is not a UUID, or the request body is invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 400
                message: >-
                  Invalid request body: `title`: Too small: expected string to
                  have >=1 characters
                error: Bad Request
        '401':
          description: The access token is missing, invalid or revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 401
                message: Missing or invalid access token
                error: Unauthorized
        '403':
          description: The access token lacks the `wishlists:write` scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 403
                message: Access token lacks the required scope
                error: Forbidden
        '404':
          description: No wishlist with this ID that you own
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 404
                message: Wishlist not found
                error: Not Found
        '409':
          description: Your wishlists changed during the request. Retry it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 409
                message: Your wishlists changed during the request. Try again.
                error: Conflict
        '429':
          description: Rate limit exceeded; retry after `Retry-After` seconds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 429
                message: 'ThrottlerException: Too Many Requests'
      security:
        - accessToken: []
components:
  schemas:
    UpdateWishlist:
      type: object
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 100
        occasion:
          type: string
          enum:
            - birthday
            - christmas
            - wedding
            - baby
            - anniversary
            - graduation
            - housewarming
            - other
        notes:
          nullable: true
          type: string
          maxLength: 500
      additionalProperties: false
      description: Send only the fields to change. `null` clears an optional field.
    Wishlist:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 3f6c1a52-8d1e-4b7a-9c2e-1f5d7a9b0c41
        title:
          type: string
          example: Birthday 2027
        occasion:
          type: string
          enum:
            - birthday
            - christmas
            - wedding
            - baby
            - anniversary
            - graduation
            - housewarming
            - other
          example: birthday
        notes:
          nullable: true
          type: string
          example: Anything green is great.
        status:
          type: string
          enum:
            - draft
            - published
            - archived
          description: >-
            The app shows `draft` as Private, `published` as Published and
            `archived` as Archived.
          example: published
        createdAt:
          type: string
          format: date-time
          example: '2026-11-02T09:15:00.000Z'
        updatedAt:
          type: string
          format: date-time
          example: '2026-11-10T18:42:00.000Z'
      required:
        - id
        - title
        - occasion
        - notes
        - status
        - createdAt
        - updatedAt
    Error:
      type: object
      properties:
        statusCode:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        message:
          type: string
        error:
          type: string
      required:
        - statusCode
        - message
  securitySchemes:
    accessToken:
      type: http
      scheme: bearer
      description: >-
        A personal access token from your Onio profile. It starts with
        `onio_pat_`.

````

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