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

# Unpublish Form

> Make a form private (no longer accessible via share URL).



## OpenAPI

````yaml openapi.json post /forms/{id}/unpublish
openapi: 3.1.0
info:
  title: GeniusForms API
  description: >-
    AI-powered form builder API. Create forms manually or generate them from
    natural language prompts.
  version: 1.0.0
  contact:
    name: GeniusForms Support
    email: support@geniusforms.ai
    url: https://geniusforms.ai
servers:
  - url: https://geniusforms.ai/api/v1
    description: Production
  - url: http://localhost:8000/api/v1
    description: Local Development
security:
  - ApiKeyAuth: []
paths:
  /forms/{id}/unpublish:
    post:
      tags:
        - Forms
      summary: Unpublish Form
      description: Make a form private (no longer accessible via share URL).
      operationId: unpublishForm
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Form unpublished
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  isPublished:
                    type: boolean
                    example: false
                  publishedAt:
                    type: 'null'
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key obtained from your GeniusForms dashboard

````