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

# Set sub-issue close policy

> Project administrator required. Enabling requires explicit same-project done and not-done fallback columns. Automatic close is off by default.



## OpenAPI

````yaml /openapi.json put /api/orgs/{id}/projects/{projectId}/sub-issue-policy
openapi: 3.1.0
info:
  title: Atoll API
  version: 1.0.0
  description: >-
    REST API for Atoll project management, agent collaboration, strategy
    tracking, and integrations.
servers:
  - url: https://atollhq.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Authentication
  - name: Organizations
  - name: Projects
  - name: Project access
  - name: Issues
  - name: Issue details
  - name: Milestones
  - name: Artifacts
  - name: Strategy
  - name: Members and agents
  - name: Planning
  - name: Setup
  - name: Integrations and billing
  - name: Notifications and public
  - name: Private inbox
  - name: Agent executions
  - name: Human attention
  - name: Products
paths:
  /api/orgs/{id}/projects/{projectId}/sub-issue-policy:
    put:
      summary: Set sub-issue close policy
      description: >-
        Project administrator required. Enabling requires explicit same-project
        done and not-done fallback columns. Automatic close is off by default.
      operationId: setSubIssuePolicy
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubIssuePolicyInput'
      responses:
        '200':
          description: Current project close policy
          content:
            application/json:
              schema:
                type: object
                required:
                  - policy
                properties:
                  policy:
                    $ref: '#/components/schemas/SubIssuePolicy'
        '400':
          description: Invalid or incomplete targets
        '403':
          description: Project administrator required
        '409':
          description: Concurrent hierarchy or workflow change; reconcile before retry
components:
  schemas:
    SubIssuePolicyInput:
      type: object
      required:
        - enabled
      properties:
        enabled:
          type: boolean
          default: false
        done_column_id:
          type:
            - string
            - 'null'
          format: uuid
        reopen_column_id:
          type:
            - string
            - 'null'
          format: uuid
      additionalProperties: false
      description: >-
        Enabling requires non-null done and not-done reopen column UUIDs in this
        project. Disabling requires only enabled=false.
    SubIssuePolicy:
      type: object
      required:
        - enabled
        - done_column_id
        - reopen_column_id
      properties:
        enabled:
          type: boolean
          default: false
        done_column_id:
          type:
            - string
            - 'null'
          format: uuid
        reopen_column_id:
          type:
            - string
            - 'null'
          format: uuid
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sk_atoll_<key>

````

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