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

# Self Serve Update Auto Approval Settings

> Replaces the org's auto-approval toggle, threshold and contractor allowlist/denylist rules atomically.

Not available to API keys.

## OpenAPI

````yaml api-reference/openapi.json POST /hris/self-serve-update-auto-approval-settings
openapi: 3.1.0
info:
  title: Toku API
  version: 1.0.0
servers:
  - url: https://api.toku.com
security:
  - bearerAuth: []
paths:
  /hris/self-serve-update-auto-approval-settings:
    post:
      operationId: selfServeUpdateAutoApprovalSettings
      summary: Self Serve Update Auto Approval Settings
      description: >-
        Replaces the org's auto-approval toggle, threshold and contractor
        allowlist/denylist rules atomically.


        Not available to API keys.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SelfServeUpdateAutoApprovalSettingsRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SelfServeUpdateAutoApprovalSettingsResponse
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '409':
          description: Conflict
        '429':
          description: Response 429
components:
  schemas:
    SelfServeUpdateAutoApprovalSettingsRequest:
      type: object
      properties:
        enabled:
          type: boolean
        threshold:
          type:
            - string
            - 'null'
          description: >-
            NOTE(ck): a .refine() rule is not mirrored here; TGA still enforces
            it
        allowlist:
          type: array
          items:
            type: string
            format: uuid
          description: >-
            NOTE(ck): default `[]` is not expressible here, so this field is
            optional; TGA applies the default
        denylist:
          type: array
          items:
            type: string
            format: uuid
          description: >-
            NOTE(ck): default `[]` is not expressible here, so this field is
            optional; TGA applies the default
      required:
        - enabled
    SelfServeUpdateAutoApprovalSettingsResponse:
      type: object
      properties: {}
      description: Request regeneration does not infer response shapes.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
````
