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

# Add a wish

> Adds a wish to a wishlist you own. Archived wishlists take no new wishes.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/wishlists/{wishlistId}/wishes
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}/wishes:
    post:
      tags:
        - Wishlists
      summary: Add a wish
      description: >-
        Adds a wish to a wishlist you own. Archived wishlists take no new
        wishes.
      operationId: createWish
      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/CreateWish'
      responses:
        '201':
          description: The new wish
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Wish'
        '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 `wishes: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: >-
            The wishlist is archived, or your wishlists changed during the
            request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 409
                message: Wishlist is archived
                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:
    CreateWish:
      type: object
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 200
          example: Green ceramic watering can
        description:
          nullable: true
          type: string
          maxLength: 300
        priority:
          default: normal
          type: string
          enum:
            - highest
            - high
            - normal
        priceRange:
          nullable: true
          type: string
          enum:
            - under_15
            - 15_to_35
            - 35_to_75
            - 75_to_150
            - over_150
        url:
          description: Must start with `http://` or `https://`.
          nullable: true
          type: string
          format: uri
        imageUrl:
          description: A link to an image. Must start with `http://` or `https://`.
          nullable: true
          type: string
          format: uri
        status:
          default: published
          type: string
          enum:
            - draft
            - published
          description: '`draft` is Private, `published` is visible.'
      required:
        - title
      additionalProperties: false
    Wish:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 7b2e4c19-5a3d-4f8e-b6c1-2d9a0e7f3b58
        wishlistId:
          type: string
          format: uuid
          example: 3f6c1a52-8d1e-4b7a-9c2e-1f5d7a9b0c41
        title:
          type: string
          example: Green ceramic watering can
        description:
          nullable: true
          type: string
          example: The 1.5 litre size, please.
        priority:
          type: string
          enum:
            - highest
            - high
            - normal
          example: high
        priceRange:
          nullable: true
          type: string
          enum:
            - under_15
            - 15_to_35
            - 35_to_75
            - 75_to_150
            - over_150
          example: 15_to_35
        url:
          nullable: true
          description: The product link as the owner entered it.
          type: string
          example: https://example.com/products/watering-can
        imageUrl:
          nullable: true
          type: string
          example: https://example.com/images/watering-can.jpg
        status:
          type: string
          enum:
            - draft
            - published
            - archived
          description: >-
            The app shows `draft` as Private. A `published` wish is visible and
            has no label. `archived` is not used yet.
          example: published
        createdAt:
          type: string
          format: date-time
          example: '2026-11-03T14:20:00.000Z'
        updatedAt:
          type: string
          format: date-time
          example: '2026-11-08T07:05:00.000Z'
      required:
        - id
        - wishlistId
        - title
        - description
        - priority
        - priceRange
        - url
        - imageUrl
        - 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.