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

# Patch account time control

> Changes only the named fields, leaving the rest as they are. A null in the body is ignored rather than treated as a removal: to remove a field, name it in `clear`. Use PUT to replace the whole control.



## OpenAPI

````yaml /api-reference/controls.openapi.json patch /v1/controls/accounts/{account_id}/time
openapi: 3.1.0
info:
  title: controls
  description: ''
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.anthid.com
    description: Production
security: []
tags:
  - name: Organization Controls
    description: Organization-level control configuration
  - name: Account Manual Controls
    description: Account-level manual control configuration
  - name: Account Risk Controls
    description: Account-level risk-limit control configuration
  - name: Account Time Controls
    description: Account-level time-window control configuration
  - name: Symbol Manual Controls
    description: Symbol-level manual control configuration
  - name: Symbol Risk Controls
    description: Symbol-level risk-limit control configuration
  - name: Symbol Time Controls
    description: Symbol-level time-window control configuration
  - name: Effective Controls
    description: Read combined controls after scope inheritance
  - name: Control Evaluation
    description: Effective control-state evaluation
paths:
  /v1/controls/accounts/{account_id}/time:
    patch:
      tags:
        - Account Time Controls
      summary: Patch account time control
      description: >-
        Changes only the named fields, leaving the rest as they are. A null in
        the body is ignored rather than treated as a removal: to remove a field,
        name it in `clear`. Use PUT to replace the whole control.
      operationId: patchAccountTimeControl
      parameters:
        - name: account_id
          in: path
          description: Trading account ID
          required: true
          schema:
            type: string
            format: uuid
          example: 550e8400-e29b-41d4-a716-446655440000
      requestBody:
        description: Fields to change, and fields to remove
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchTimeControlRequest'
            example:
              clear:
                - stale_order_millis
              trading_start: '09:30:00'
        required: true
      responses:
        '200':
          description: Account time control patched
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountTimeControl'
              example:
                account_id: 550e8400-e29b-41d4-a716-446655440000
                created_at: '2026-08-12T16:20:00Z'
                organization_id: 550e8400-e29b-41d4-a716-446655440222
                stale_order_millis: null
                trading_end: '16:00:00'
                trading_start: '09:30:00'
                updated_at: '2026-08-13T09:15:00Z'
                version: 2
        '400':
          description: >-
            Request changes nothing, sets and clears the same field, or names an
            unknown field in `clear`
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: >-
            Missing or invalid authentication credentials, or the credential
            carries no active organization
          content:
            text/plain:
              schema:
                type: string
        '403':
          description: >-
            Caller lacks entitlement, edit permission, or ownership of the
            trading account. A trading account that does not exist is refused
            the same way as one owned by another organization, so a caller
            cannot confirm an id exists elsewhere
          content:
            text/plain:
              schema:
                type: string
        '429':
          description: Caller exceeded the request rate limit
          content:
            text/plain:
              schema:
                type: string
        '500':
          description: Unexpected server error while patching the control
          content:
            text/plain:
              schema:
                type: string
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    PatchTimeControlRequest:
      type: object
      properties:
        clear:
          type: array
          items:
            $ref: '#/components/schemas/TimeControlField'
        stale_order_millis:
          type:
            - integer
            - 'null'
          format: int64
        trading_end:
          type:
            - string
            - 'null'
        trading_start:
          type:
            - string
            - 'null'
    AccountTimeControl:
      type: object
      required:
        - account_id
        - organization_id
        - version
        - created_at
        - updated_at
      properties:
        account_id:
          type: string
          format: uuid
        created_at:
          type: string
          format: date-time
        organization_id:
          type: string
          format: uuid
        stale_order_millis:
          type:
            - integer
            - 'null'
          format: int64
        trading_end:
          type:
            - string
            - 'null'
        trading_start:
          type:
            - string
            - 'null'
        updated_at:
          type: string
          format: date-time
        version:
          type: integer
          format: int64
    TimeControlField:
      type: string
      description: Fields of a time control a PATCH may remove.
      enum:
        - trading_start
        - trading_end
        - stale_order_millis
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````