> ## 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.

# Assign subscriptions to child client (multi-tenant)

> Assigns one or more subscriptions to a child client within the same organization. The parent client must own the subscriptions, and the child client must be part of the same organization (sharing the same id_father or being a direct subsidiary of the parent).



## OpenAPI

````yaml /generated/specs/operations.json post /api/v1/subscription_details/assign-to-child
openapi: 3.0.0
info:
  title: Raul API - Operaciones
  description: Suscripciones, GPS, actividades, visitas y operacion tecnica.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/subscription_details/assign-to-child:
    post:
      tags:
        - Subscription Details
      summary: Assign subscriptions to child client (multi-tenant)
      description: >-
        Assigns one or more subscriptions to a child client within the same
        organization. The parent client must own the subscriptions, and the
        child client must be part of the same organization (sharing the same
        id_father or being a direct subsidiary of the parent).
      operationId: SubscriptionDetailsController_assignToChild
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssignSubscriptionsToChildDto'
      responses:
        '201':
          description: Subscriptions assigned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssignSubscriptionsResponseDto'
        '400':
          description: >-
            Invalid request (empty subscription_ids, same parent/child, invalid
            relationship)
        '404':
          description: Parent client, child client, or subscriptions not found
      security:
        - bearerAuth: []
components:
  schemas:
    AssignSubscriptionsToChildDto:
      type: object
      properties:
        parent_client_id:
          type: string
          description: Parent client ID (subscription owner)
        child_client_id:
          type: string
          description: Child client ID to assign subscriptions to
        subscription_ids:
          description: Subscription IDs to assign
          type: array
          items:
            type: string
      required:
        - parent_client_id
        - child_client_id
        - subscription_ids
    AssignSubscriptionsResponseDto:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        count:
          type: number
        child_client_id:
          type: string
      required:
        - success
        - message
        - count
        - child_client_id
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication

````