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

# Toggle Torque

> Enable or disable the torque of the robot.



## OpenAPI

````yaml post /torque/toggle
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /torque/toggle:
    post:
      tags:
        - control
      summary: Toggle Torque
      description: Enable or disable the torque of the robot.
      operationId: toggle_torque_torque_toggle_post
      parameters:
        - in: query
          name: robot_id
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Robot Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TorqueControlRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    TorqueControlRequest:
      description: Request to control the robot's torque.
      properties:
        torque_status:
          description: Whether to enable or disable torque control.
          title: Torque Status
          type: boolean
      required:
        - torque_status
      title: TorqueControlRequest
      type: object
    StatusResponse:
      additionalProperties: true
      description: Default response. May contain other fields.
      properties:
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
        status:
          default: ok
          enum:
            - ok
            - error
          title: Status
          type: string
      title: StatusResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````