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

# Deactivate managed client

> MSP only. Soft-deletes a managed client org after a typed name confirmation. Refused while devices are registered or MSP-owned licenses are assigned; unassigned pooled licenses are reclaimed first; every session in the client org is ended; the MSP's authority row is kept so the org can be restored by Rhombus.



## OpenAPI

````yaml https://api2.rhombussystems.com/api/openapi/public.json post /api/partner/deactivateClient
openapi: 3.0.1
info:
  contact:
    email: developer@rhombussystems.com
  description: >-
    This API is for use by Rhombus customers and partners.


    ## Authentication


    All requests require two headers:

    - `x-auth-scheme` — The authentication scheme identifier. Use `api-token`
    for standard API key auth, or `partner-api-token` for partner API auth.

    - `x-auth-apikey` — Your Rhombus API key.


    Example:

    ```

    POST /api/camera/getMinimalCameraStateList

    x-auth-scheme: api-token

    x-auth-apikey: YOUR_API_KEY

    Content-Type: application/json

    ```
  title: Rhombus API
  version: '1.0'
servers:
  - description: Production Server
    url: https://api2.rhombussystems.com
security:
  - ApiKeyAuth: []
paths:
  /api/partner/deactivateClient:
    post:
      tags:
        - Partner Webservice
      summary: Deactivate managed client
      description: >-
        MSP only. Soft-deletes a managed client org after a typed name
        confirmation. Refused while devices are registered or MSP-owned licenses
        are assigned; unassigned pooled licenses are reclaimed first; every
        session in the client org is ended; the MSP's authority row is kept so
        the org can be restored by Rhombus.
      operationId: deactivateClient
      parameters:
        - description: >-
            Authentication scheme identifier. Use `api-token` for standard API
            key authentication, `partner-api-token` for partner API key
            authentication. Must be paired with the `x-auth-apikey` header
            containing your API key.
          example: partner-api-token
          in: header
          name: x-auth-scheme
          required: true
          schema:
            type: string
            default: partner-api-token
            enum:
              - api-token
              - api
              - partner-api-token
              - partner-api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Partner_msp_DeactivateClientWSRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Partner_msp_DeactivateClientWSResponse'
          description: OK
components:
  schemas:
    Partner_msp_DeactivateClientWSRequest:
      type: object
      description: Deactivate (soft delete) a managed client org.
      properties:
        clientOrgUuid:
          type: string
          format: RUUID
          description: base 64 (url-safe) uuid string
          example: AAAAAAAAAAAAAAAAAAAAAA
          nullable: true
        confirmName:
          type: string
          description: Typed confirmation; must match the client org name.
          nullable: true
    Partner_msp_DeactivateClientWSResponse:
      type: object
      description: Outcome of a client deactivation.
      properties:
        blockedByDevices:
          type: array
          description: Devices still registered in the client org.
          items:
            $ref: '#/components/schemas/Partner_msp_BlockingDeviceWSType'
          nullable: true
        blockedByLicenses:
          type: array
          description: Pooled licenses still assigned to devices in the client org.
          items:
            $ref: '#/components/schemas/Partner_msp_BlockingLicenseWSType'
          nullable: true
        deactivated:
          type: boolean
          description: True when the org was soft-deleted by this call (or already was).
          nullable: true
        error:
          type: boolean
          nullable: true
        errorCode:
          type: string
          description: >-
            DEVICES_STILL_REGISTERED or LICENSES_STILL_ASSIGNED when deactivated
            is false.
          nullable: true
        errorMsg:
          type: string
          nullable: true
        reclaimedLicenses:
          type: integer
          format: int32
          description: Pooled licenses moved back to the MSP by this call.
          nullable: true
        warningMsg:
          type: string
          nullable: true
    Partner_msp_BlockingDeviceWSType:
      type: object
      description: A registered device that blocks deactivation.
      properties:
        deviceUuid:
          type: string
          format: RUUID
          description: base 64 (url-safe) uuid string
          example: AAAAAAAAAAAAAAAAAAAAAA
          nullable: true
        name:
          type: string
          nullable: true
        serial:
          type: string
          nullable: true
    Partner_msp_BlockingLicenseWSType:
      type: object
      description: A pooled license still assigned to a device that blocks deactivation.
      properties:
        licenseUuid:
          type: string
          format: RUUID
          description: base 64 (url-safe) uuid string
          example: AAAAAAAAAAAAAAAAAAAAAA
          nullable: true
        productCode:
          type: string
          nullable: true
  securitySchemes:
    ApiKeyAuth:
      description: >-
        Your Rhombus API key. Must be accompanied by the `x-auth-scheme` header
        set to `api-token` (or `partner-api-token` for partner endpoints).
      in: header
      name: x-auth-apikey
      type: apiKey

````