The current account owner can change the owner of an account to another user on the same account. Use this API to change the owner of a sub account.Prerequisites:
Account owner or admin permissions of an account.
The account making this API request must be on a pro or a hiigher plan with master account privilege.
Scopes:account:write:admin or account:master Rate Limit Label:Heavy
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request PUT 'http://api.zoom.us/v2/accounts//owner' \
--form'email=""'
响应示例响应示例
204 - 示例 1
null
请求参数
Path 参数
accountId
string
必需
Account Id of the account.
Body 参数multipart/form-data
email
string<email>
必需
Email address of the new owner.
返回响应
🟢204**HTTP Status Code:** `204`<br>
Account owner updated.
application/json
Body
No schema defined
🟠400**HTTP Status Code:** `400`<br>
**Error Code:** `200`<br>
User is not an admin or is an API user or doesn’t belong to this account: {accountId}.<br>
Cannot make a user outside of your account an owner.<br>
Cannot update the role of an account owner.
🟠404**HTTP Status Code:** `404`<br>
**Error Code:** `2001`<br>
Account does not exist: $subAccountId.<br>
**Error Code:** `3201`<br>
Cannot find a billing account for this: $accountId.<br>
**Error Code:** `3211`<br>
Cannot find a billing contact for this: $ac