Zum Hauptinhalt springen
PUT
/
customers
/
{customerId}
/
remove-parent
cURL
curl -X PUT \
 /customers/{customerId}/remove-parent \
 --header "Authorization: Bearer <token>"
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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.

Autorisierungen

Authorization
string
header
erforderlich

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Pfadparameter

customerId
string<uuid>
erforderlich

The ID of the customer to remove the parent from

Antwort

Parent customer removed successfully

id
string<uuid>

The ID of the customer