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

# Remove parent customer

> Removes the parent customer assignment, making this customer a root-level customer in the organization hierarchy.

This endpoint requires the `customer.hierarchy` feature to be enabled.

<sup>Required permissions: `customer:write`</sup>

Removes the parent customer assignment from a child customer. After removal, the customer becomes a standalone root-level customer without hierarchy membership.

## Feature Flag

This endpoint requires the `customer.hierarchy` feature to be enabled. If the feature is not active, a `501 Not Implemented` response is returned.

## Webhooks

A successful removal dispatches the `customer.parent.removed` webhook event, which includes the customer payload.


## OpenAPI

````yaml put /customers/{customerId}/remove-parent
openapi: 3.1.0
info:
  title: Fynn API
  description: ''
  termsOfService: https://www.fynn.eu/tos
  contact:
    name: Fynn UG (haftungsbeschränkt)
    url: https://www.fynn.eu
    email: hi@fynn.eu
  license:
    name: Proprietary
    url: https://www.fynn.eu/license
  version: 0.0.0
servers:
  - url: https://coreapi.io
    description: Production
  - url: https://preview.coreapi.io
    description: Sandbox
security:
  - JWT: []
tags: []
paths:
  /customers/{customerId}/remove-parent:
    parameters: []
    put:
      tags:
        - Customer
      summary: Remove parent customer
      description: >-
        Removes the parent customer assignment, making this customer a
        root-level customer in the organization hierarchy.


        This endpoint requires the `customer.hierarchy` feature to be enabled.


        <sup>Required permissions: `customer:write`</sup>
      operationId: removeCustomerParent
      parameters:
        - name: customerId
          in: path
          description: The ID of the customer to remove the parent from
          required: true
          deprecated: false
          schema:
            type: string
            format: uuid
          style: simple
          explode: false
      responses:
        '200':
          description: Parent customer removed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: The ID of the customer
        '404':
          description: Customer not found
        '501':
          description: >-
            Feature not enabled — the customer.hierarchy feature flag is not
            active
      deprecated: false
      security:
        - JWT:
            - customer:write
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl -X PUT \
             /customers/{customerId}/remove-parent \
             --header "Authorization: Bearer <token>"
components:
  securitySchemes:
    JWT:
      type: http
      scheme: bearer

````