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

# Close Pull Request

> Close a pull request without merging it.

Marks the PR as closed and is reversible only by opening a new PR —
a closed PR cannot be reopened. The source branch is left intact
(delete it separately via `DELETE …/branches/{name}` if desired).



## OpenAPI

````yaml post /orgs/{org_id}/nodes/{node_id}/pull-requests/{pr_number}/close
openapi: 3.1.0
info:
  title: Flow API
  description: Content-addressing backend with Git-like versioning
  version: 1.0.0
servers:
  - url: https://api.yertle.com
    description: Production
security: []
paths:
  /orgs/{org_id}/nodes/{node_id}/pull-requests/{pr_number}/close:
    post:
      tags:
        - pull-requests
      summary: Close Pull Request
      description: |-
        Close a pull request without merging it.

        Marks the PR as closed and is reversible only by opening a new PR —
        a closed PR cannot be reopened. The source branch is left intact
        (delete it separately via `DELETE …/branches/{name}` if desired).
      operationId: >-
        close_pull_request_orgs__org_id__nodes__node_id__pull_requests__pr_number__close_post
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            title: Org Id
        - name: node_id
          in: path
          required: true
          schema:
            type: string
            title: Node Id
        - name: pr_number
          in: path
          required: true
          schema:
            type: integer
            title: Pr Number
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PRDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PRDetailResponse:
      properties:
        pr:
          $ref: '#/components/schemas/PullRequestResponse'
          description: Pull request details
      type: object
      required:
        - pr
      title: PRDetailResponse
      description: Detailed response for a single pull request.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PullRequestResponse:
      properties:
        id:
          type: string
          title: Id
          description: PR unique identifier
        node_id:
          type: string
          title: Node Id
          description: Node this PR belongs to
        number:
          type: integer
          title: Number
          description: PR number
        title:
          type: string
          title: Title
          description: PR title
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: PR description
        source_branch:
          type: string
          title: Source Branch
          description: Source branch name
        target_branch:
          type: string
          title: Target Branch
          description: Target branch name
        source_commit:
          type: string
          title: Source Commit
          description: Source commit ID
        target_commit:
          type: string
          title: Target Commit
          description: Target commit ID
        status:
          type: string
          title: Status
          description: PR status (open, merged, closed)
        is_draft:
          type: boolean
          title: Is Draft
          description: Whether PR is draft
        author:
          type: string
          title: Author
          description: PR author
        author_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Author Email
          description: Author email address
        merged_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Merged By
          description: Who merged the PR
        merged_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Merged By Email
          description: Merger email address
        closed_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Closed By
          description: Who closed the PR
        closed_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Closed By Email
          description: Closer email address
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When PR was created
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When PR was last updated
        merged_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Merged At
          description: When PR was merged
        closed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Closed At
          description: When PR was closed
        can_merge:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Can Merge
          description: Whether PR can be merged now
        merge_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Merge Reason
          description: Reason if cannot merge
        commits_ahead:
          anyOf:
            - type: integer
            - type: 'null'
          title: Commits Ahead
          description: Commits ahead of target branch
      type: object
      required:
        - id
        - node_id
        - number
        - title
        - source_branch
        - target_branch
        - source_commit
        - target_commit
        - status
        - is_draft
        - author
        - created_at
        - updated_at
      title: PullRequestResponse
      description: Response model for pull request data.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````