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

# Reactivate a trading account

> Reactivate a previously deactivated account with an optional balance reset.



## OpenAPI

````yaml /openapi.json patch /api/accounts/{id}/reactivate/
openapi: 3.0.3
info:
  title: TBBO API
  version: 1.0.0
  description: >
    Authentication uses short-lived session tokens (3 hours).


    Send the token with every request using the `Authorization` header:


    ```

    Authorization: Token <token>

    ```


    Example:


    ```

    Authorization: Token 123abc456def789

    ```


    To obtain a token, call `POST /auth/login/` with valid credentials. The
    response includes a `key` value. Use that value in the header above for
    subsequent API calls.


    How to find required IDs:


    - `challenge_id`: Prop Tech Configuration -> Challenges

    - `user_id`: Tickblaze Manager -> Users

    - `account_id`: Tickblaze Manager -> Accounts 
servers: []
security: []
tags:
  - name: withdrawals
    description: Withdrawal related endpoints
    x-displayName: Withdrawals
paths:
  /api/accounts/{id}/reactivate/:
    patch:
      tags:
        - Accounts
      summary: Reactivate a trading account
      description: >-
        Reactivate a previously deactivated account with an optional balance
        reset.
      operationId: api_accounts_reactivate_partial_update
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedAccountReactivateRequest'
            examples:
              ReactivateWithoutReset:
                value:
                  reason: User requested reactivation after temporary suspension
                  reset_balance: false
                summary: Reactivate account keeping current balance
                description: >-
                  Example of reactivating an account while maintaining the
                  existing balance
              ReactivateWithBalanceReset:
                value:
                  reason: >-
                    Account failed evaluation. User purchased new challenge to
                    retry.
                  reset_balance: true
                summary: Reactivate account and reset balance
                description: >-
                  Example of reactivating an account and resetting balance to
                  initial amount (fresh start)
              ReactivateAfterTechnicalIssue:
                value:
                  reason: >-
                    Reactivating after platform maintenance. No balance reset
                    needed.
                  reset_balance: false
                summary: Reactivate after technical problem
                description: >-
                  Example of reactivating an account that was deactivated due to
                  technical issues
              ReactivateAfterRuleViolation:
                value:
                  reason: >-
                    Trader violated max drawdown rule. Offering fresh start with
                    reset balance after review.
                  reset_balance: true
                summary: Reactivate with fresh start
                description: Example of giving trader a second chance with reset balance
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedAccountReactivateRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedAccountReactivateRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
              examples:
                SuccessResponse-WithoutReset:
                  value:
                    success: true
                    message: Account reactivated successfully.
                    results:
                      - account_id: 1001
                        challenge_short_code: '001122'
                        is_active: true
                        is_passed: false
                        failure_reason: null
                        failed_at: null
                        current_balance: 48500
                        reactivated_at: '2026-01-07T15:30:00Z'
                    summary:
                      updated: 1
                    duration_ms: 52
                  summary: Successful reactivation keeping balance
                  description: >-
                    Response when account is reactivated without resetting
                    balance
                SuccessResponse-WithReset:
                  value:
                    success: true
                    message: Account reactivated successfully.
                    results:
                      - account_id: 1001
                        challenge_short_code: '001122'
                        is_active: true
                        is_passed: false
                        failure_reason: null
                        failed_at: null
                        current_balance: 50000
                        reactivated_at: '2026-01-07T15:35:00Z'
                    summary:
                      updated: 1
                    duration_ms: 68
                  summary: Successful reactivation with balance reset
                  description: >-
                    Response when account is reactivated and balance is reset to
                    initial amount
          description: ''
      security:
        - tokenAuth: []
components:
  schemas:
    PatchedAccountReactivateRequest:
      type: object
      properties:
        reason:
          type: string
          maxLength: 500
        reset_balance:
          type: boolean
          default: false
    OperationResponse:
      type: object
      description: >-
        Standard serializer for operation responses. A command or a task should
        return a response matching this format.

        Operation = a request to perform some action, e.g. sync, update, delete,
        create, etc.
      properties:
        success:
          type: boolean
          description: Indicates whether the operation completed successfully.
        results:
          type: array
          items: {}
          description: >-
            List containing the result items produced by the operation. The
            structure of each item depends on the executed operation.
        summary:
          type: object
          additionalProperties: {}
          description: >-
            Aggregated summary information about the operation results (e.g.
            counts of updated, created, failed or unchanged records).
        duration_ms:
          type: number
          format: double
          description: Execution time of the operation in milliseconds.
        message:
          type: string
          nullable: true
          description: Optional human-readable message describing the operation outcome.
      required:
        - duration_ms
        - results
        - success
        - summary
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"

````

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