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.
Call through Alter
Section titled “Call through Alter”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 osfrom alter_sdk import Appfrom 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()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
headers | object | Required within parent | Additional keys: not allowed |
headers.X-Beta | string | Required within parent | Default: true One of: true |
body | object | Optional | |
body.data | Model | Required within parent | Expand Remove admins from child organizations — request body — body data The request payload. |
Referenced models: Remove admins from child organizations — request body — body data
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Remove admins from child organizations — 200 response body |
Referenced models: Remove admins from child organizations — 200 response body
Schemas
Section titled “Schemas”Remove admins from child organizations — request body — body data
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The request payload. |
admins | array | Required within parent | The people to remove from every submitted child organization. |
admins[] | Model | Each item | Expand Remove admins from child organizations — request body — body data admins item |
child_org_ids | array | Required within parent | Public 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[] | string | Each item | Format: uuid |
Referenced models: Remove admins from child organizations — request body — body data admins item
Remove admins from child organizations — 200 response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
data | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
email | string | Required within parent | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The outcome of the request. |
items | array | Required within parent | One item per admin and child organization pair of the request. |
items[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
child_org_id | string | Required within parent | The public id of the child organization. Format: uuid |
email | string | Required within parent | The email of the admin, as submitted. Format: email |
status | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | 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. Known values: REMOVED, NOT_A_MEMBER, NOT_AN_ADMIN, LAST_ADMIN, FAILED |
Policy, approvals and errors
Section titled “Policy, approvals and errors”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"}