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

# Pin or unpin a project for the signed-in account



## OpenAPI

````yaml https://api.lunary.ai/v1/openapi patch /v1/projects/{projectId}/pin
openapi: 3.0.0
info:
  title: Lunary API
  version: 1.0.0
servers:
  - url: https://api.lunary.ai
security: []
tags: []
paths:
  /v1/projects/{projectId}/pin:
    patch:
      tags:
        - Projects
      summary: Pin or unpin a project for the signed-in account
      parameters:
        - in: path
          name: projectId
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - pinned
              properties:
                pinned:
                  type: boolean
      responses:
        '200':
          description: >-
            This account's saved pin state. Does not change project access or
            other accounts' pins.
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                  - isPinned
                properties:
                  id:
                    type: string
                    format: uuid
                  isPinned:
                    type: boolean
        '401':
          description: A human account session is required.
        '403':
          description: This account cannot read projects.
        '404':
          description: The project is unavailable to this account.
        '422':
          description: Invalid project ID or request body.
      security:
        - AccountSessionAuth: []
components:
  securitySchemes:
    AccountSessionAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Human account session; project and organization API keys are rejected.

````

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