subAccounts
Create a sub-account
Changed onCreates a sub-account and provisions an initial sandbox API key. external_id is an idempotency key unique within the parent account: repeating a request with the same external_id returns the existing sub-account with 200 and no api_keys field. With inherit_products_from_parent enabled (the default), parent product changes cascade to the sub-account. When disabled, products is required and the sub-account is independent.
post/v1/sub_accounts
Request
- Base URLhttps://api.middesk.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
existing sub-account returned for the external ID
Changes
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
bearer_authwas added to the API
- warning
- info
api operation id
createSubAccountremoved and replaced withsubAccounts_createSubAccount
- info