Skip to content

Deel: Remove admins from child organizations

Deel organizations.removeChildOrganizationAdmins: arguments, response, policy and SDK examples.

← Organizations operations · Get started

Operation deel.organizations_removechildorganizationadmins_v2026_11_13

Provider route: POST /organizations/children/admins/remove. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/deel with npm, or alter-sdk-deel with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { DeelIntegration } from "@alter-ai/deel";
async function execute(input: Parameters<DeelIntegration["organizations"]["removeChildOrganizationAdmins"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new DeelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.organizations.removeChildOrganizationAdmins(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_deel import DeelIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = DeelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.organizations.remove_child_organization_admins(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
headersobjectRequired within parentAdditional keys: not allowed
headers.X-BetastringRequired within parentDefault: true
One of: true
bodyobjectOptional
body.dataModelRequired within parentExpand Remove admins from child organizations — request body — body data
The request payload.

Referenced models: Remove admins from child organizations — request body — body data

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Remove admins from child organizations — 200 response body

Referenced models: Remove admins from child organizations — 200 response body

Remove admins from child organizations — request body — body data
FieldTypePresenceDescription and constraints
$objectRootThe request payload.
adminsarrayRequired within parentThe people to remove from every submitted child organization.
admins[]ModelEach itemExpand Remove admins from child organizations — request body — body data admins item
child_org_idsarrayRequired within parentPublic ids of the target child organizations, as returned in the id field of the create child organization response. Every id must be a direct child organization of the authenticated organization. The number of admins multiplied by the number of child organizations must not exceed 100.
child_org_ids[]stringEach itemFormat: uuid

Referenced models: Remove admins from child organizations — request body — body data admins item

Remove admins from child organizations — 200 response body
FieldTypePresenceDescription and constraints
$objectRoot
dataModelRequired within parentExpand Remove admins from child organizations — 200 response body — data
The outcome of the request.

Referenced models: Remove admins from child organizations — 200 response body — data

Remove admins from child organizations — request body — body data admins item
FieldTypePresenceDescription and constraints
$objectRoot
emailstringRequired within parentThe email of the person. Each email may appear once per request, ignoring case.
Format: email
Maximum length: 255
Remove admins from child organizations — 200 response body — data
FieldTypePresenceDescription and constraints
$objectRootThe outcome of the request.
itemsarrayRequired within parentOne item per admin and child organization pair of the request.
items[]ModelEach itemExpand Remove admins from child organizations — 200 response body — data items item

Referenced models: Remove admins from child organizations — 200 response body — data items item

Remove admins from child organizations — 200 response body — data items item
FieldTypePresenceDescription and constraints
$objectRoot
child_org_idstringRequired within parentThe public id of the child organization.
Format: uuid
emailstringRequired within parentThe email of the admin, as submitted.
Format: email
statusModelRequired within parentExpand Remove admins from child organizations — 200 response body — data items item status
The outcome for the pair. REMOVED means the person lost their team and entity roles and no longer belongs to the child organization; their Deel login and their other organizations are untouched. NOT_A_MEMBER means the person was not a member, and nothing changed. NOT_AN_ADMIN means the person is a member but not an admin of the child organization, and nothing changed. LAST_ADMIN means removing the person would leave the child organization without an admin: when a request names every admin of a child organization, the last of them in the request is kept with their roles unchanged. FAILED means the pair could not be processed and nothing changed for it; the other pairs are unaffected.

Referenced models: Remove admins from child organizations — 200 response body — data items item status

Remove admins from child organizations — 200 response body — data items item status
FieldTypePresenceDescription and constraints
$stringRootThe outcome for the pair. REMOVED means the person lost their team and entity roles and no longer belongs to the child organization; their Deel login and their other organizations are untouched. NOT_A_MEMBER means the person was not a member, and nothing changed. NOT_AN_ADMIN means the person is a member but not an admin of the child organization, and nothing changed. LAST_ADMIN means removing the person would leave the child organization without an admin: when a request names every admin of a child organization, the last of them in the request is kept with their roles unchanged. FAILED means the pair could not be processed and nothing changed for it; the other pairs are unaffected.
Known values: REMOVED, NOT_A_MEMBER, NOT_AN_ADMIN, LAST_ADMIN, FAILED

SDK function policy ID: deel.organizations_removechildorganizationadmins_v2026_11_13. Catalog operation: organizations_removechildorganizationadmins_v2026_11_13. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["organizations:write"]

Pinned headers: {"X-Version": "2026-11-13"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.