Skip to main content

Onboard several AWS accounts

POST 

/accounts/onboard/bulk

Onboards a list of AWS accounts. Each one gets exactly the treatment POST /accounts/onboard gives a single account. Read that operation for what onboarding does to an AWS account, since all of it applies here, once per entry.

Synchronous, and slow by construction. Accounts are processed thirty at a time and the request blocks until the last one finishes. Nothing is queued and there is no job to poll.

Partial success is a 200. This is the difference that matters between this operation and the single-account one. A run in which nine of ten accounts onboarded returns 200, and the tenth is visible only in data.onboardingResult.account_errors. Never treat a 200 here as "all accounts onboarded". Compare successful_onboarding against total_accounts, or check that account_errors is empty. Only a run in which nothing at all onboarded is reported as an error status.

Validation is all-or-nothing and runs first: one bad entry rejects the whole batch with a 400 naming its index, and no account is touched.

ownerEmails is not supported here: the bulk body has no such field, and the accounts are onboarded with their owners untouched. Use POST /accounts/onboard per account if you need to set them.

Request​

Responses​

At least one account onboarded. This does not mean all of them did. Read data.onboardingResult for the per-account outcome.