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

# Enable or disable a SIM card

> Enable or disable a single SIM card through the Emnify API.

    This endpoint acts as a secure backend proxy to the Emnify API,
    keeping API tokens safe and managing authentication.

    **Notes:**
    - Only Emnify SIMs can be managed (phone numbers starting with "42")
    - The SIM must exist in the Emnify platform
    - Changes may take a few minutes to take effect



## OpenAPI

````yaml /generated/specs/diagnostics.json post /api/v1/sim/status
openapi: 3.0.0
info:
  title: Raul API - Diagnostico
  description: Health, consumo, conectividad, SIMs, webhooks fallidos y estados tecnicos.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/sim/status:
    post:
      tags:
        - SIM Management
      summary: Enable or disable a SIM card
      description: |-
        Enable or disable a single SIM card through the Emnify API.

            This endpoint acts as a secure backend proxy to the Emnify API,
            keeping API tokens safe and managing authentication.

            **Notes:**
            - Only Emnify SIMs can be managed (phone numbers starting with "42")
            - The SIM must exist in the Emnify platform
            - Changes may take a few minutes to take effect
      operationId: SimManagementController_changeSimStatus
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SimStatusRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimStatusResultDto'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmnifyErrorDto'
        '500':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmnifyErrorDto'
      security:
        - bearerAuth: []
components:
  schemas:
    SimStatusRequestDto:
      type: object
      properties:
        phone_number:
          type: string
          description: Phone number (MSISDN) of the SIM to modify
          example: '423663922670587'
        action:
          type: string
          description: Action to perform
          enum:
            - enable
            - disable
          example: enable
      required:
        - phone_number
        - action
    SimStatusResultDto:
      type: object
      properties:
        success:
          type: boolean
        phone_number:
          type: string
        endpoint_id:
          type: object
        sim_id:
          type: object
        new_status:
          type: object
        message:
          type: string
      required:
        - success
        - phone_number
        - message
    EmnifyErrorDto:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: string
      required:
        - error
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication

````