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

# Share a wishlist

> Sets the wishlist to Published and returns its share link. An existing link stays the same. If the wishlist was Private, people who follow it see its wishes again.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/wishlists/{wishlistId}/share
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}/share:
    post:
      tags:
        - Wishlists
      summary: Share a wishlist
      description: >-
        Sets the wishlist to Published and returns its share link. An existing
        link stays the same. If the wishlist was Private, people who follow it
        see its wishes again.
      operationId: shareWishlist
      parameters:
        - name: wishlistId
          required: true
          in: path
          description: The `id` of a wishlist you own.
          schema:
            format: uuid
            type: string
      responses:
        '200':
          description: The share link
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WishlistShare'
        '400':
          description: An ID is not a UUID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 400
                message: Validation failed (uuid is expected)
                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:share` 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:
    WishlistShare:
      type: object
      properties:
        url:
          type: string
          format: uri
          description: The share link. Anyone with it can view the wishlist.
          example: https://web.onio.app/s/q3Zr8Kp1vXc0LmN4tYb7HwE2sJd9uFa6GhR5oTi_kWe
      required:
        - url
    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.