User roles can have a set of permissions that allows access only to the pages a user needs to view or edit. Use this API to assign a role to members.Scopes:role:write:admin Rate Limit Label:Medium Prerequisites:
A Pro or a higher plan.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request POST 'http://api.zoom.us/v2/roles//members'
响应示例响应示例
201 - 示例 1
{"add_at":"2019-08-24T14:15:22Z","ids":"string"}
请求参数
Path 参数
roleId
string
必需
The role ID
Body 参数multipart/form-data
members
array [object {2}]
可选
Array of userId/user email of users to whom you would like to assign this role. Upto 30 users can be assigned a role at once.
<= 30 items
email
string<email>
可选
Email address of the user to whom you would like to assign the role. Provide either the userId in the ID field or the email address in the email field. If both fields are provided, only userId is used.
id
string
可选
User ID of the user to whom you would like to assign the role.
返回响应
🟢201**HTTP Status Code:** `201`<br>Members Added
application/json
Body
add_at
string<date-time>
可选
Date and time at which the members are assigned to the role.
ids
string
User ID
可选
🟠400**HTTP Status Code:** `400`<br>
**Error Code:** `1034`
Role does not exist.<br><br>
**Error Code:** `300`<br>
RoleId required.<br>
Can’t delete or add members for Normal/Owner roles.<br><br>