DELETE /accounts/relationship/{parentAccountId}/{childAccountId}
Delete a specific parent-child relationship
Remove a parent-child relationship between two accounts. This does not delete the accounts themselves, only the relationship between them. Requires Super Admin permissions.
Authentication Required
Authorization: Bearer {token}
header string This header is required to access this endpoint
Required Parameters
parentAccountId
path string Unique ID of the parent account
childAccountId
path string Unique ID of the child account
Try it out
Loading...
Output:
Responses
Description
Relationship deleted successfully
{ "parentAccountId": "string", "childAccountId": "string", "createdBy": "string", "createdAt": "string"}Description
Unauthorized - User not authenticated
Description
Forbidden - Requires Super Admin role
Description
Relationship not found
Description
Internal server error
Route Source Code
Check out the source code for this route entrypoint here: /accounts/relationship/[parentAccountId]/[childAccountId]/route.ts
Or the swagger.yaml spec this documentation was generated from:
/accounts/swagger.yaml