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

# Advance or reopen the caller org's GL closed period

> Claims-org bless of the legacy /admin_api/update_closed_period route for the
services agent. org_qid always comes from the session (admin.org_qid), never
from the request body, so a services token can only move its own org's
closed period.



## OpenAPI

````yaml https://app.usequanta.com/openapi/quanta-services-api/openapi.json post /admin_api/update_org_closed_period
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://app.usequanta.com
    description: Production
security:
  - HTTPBearer: []
paths:
  /admin_api/update_org_closed_period:
    post:
      tags:
        - control_panel
        - quanta-services-api
      summary: Advance or reopen the caller org's GL closed period
      description: >-
        Claims-org bless of the legacy /admin_api/update_closed_period route for
        the

        services agent. org_qid always comes from the session (admin.org_qid),
        never

        from the request body, so a services token can only move its own org's

        closed period.
      operationId: update_org_closed_period
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOrgClosedPeriodRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateOrgClosedPeriodResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    UpdateOrgClosedPeriodRequest:
      properties:
        month:
          type: integer
          title: Month
        year:
          type: integer
          title: Year
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
        reason_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason Type
      additionalProperties: false
      type: object
      required:
        - month
        - year
      title: UpdateOrgClosedPeriodRequest
    UpdateOrgClosedPeriodResponse:
      properties:
        org_qid:
          type: string
          title: Org Qid
        previous_closed_month:
          type: integer
          title: Previous Closed Month
        previous_closed_year:
          type: integer
          title: Previous Closed Year
        new_closed_month:
          type: integer
          title: New Closed Month
        new_closed_year:
          type: integer
          title: New Closed Year
        moved_backward:
          type: boolean
          title: Moved Backward
        message:
          type: string
          title: Message
      type: object
      required:
        - org_qid
        - previous_closed_month
        - previous_closed_year
        - new_closed_month
        - new_closed_year
        - moved_backward
        - message
      title: UpdateOrgClosedPeriodResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Quanta Services API scoped bearer token. Supported only on Services API
        routes.

````

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