rePostPrivate / Client / batch_add_channel_role_to_accessors
batch_add_channel_role_to_accessors¶
- rePostPrivate.Client.batch_add_channel_role_to_accessors(**kwargs)¶
Add role to multiple users or groups in a private re:Post channel.
See also: AWS API Documentation
Request Syntax
response = client.batch_add_channel_role_to_accessors( spaceId='string', channelId='string', accessorIds=[ 'string', ], channelRole='ASKER'|'EXPERT'|'MODERATOR'|'SUPPORTREQUESTOR' )
- Parameters:
spaceId (string) –
[REQUIRED]
The unique ID of the private re:Post.
channelId (string) –
[REQUIRED]
The unique ID of the private re:Post channel.
accessorIds (list) –
[REQUIRED]
The user or group identifiers to add the role to.
(string) –
channelRole (string) –
[REQUIRED]
The channel role to add to the users or groups.
- Return type:
dict
- Returns:
Response Syntax
{ 'addedAccessorIds': [ 'string', ], 'errors': [ { 'accessorId': 'string', 'error': 123, 'message': 'string' }, ] }
Response Structure
(dict) –
addedAccessorIds (list) –
An array of successfully updated identifiers.
(string) –
errors (list) –
An array of errors that occurred when roles were added.
(dict) –
An error that occurred during a batch operation.
accessorId (string) –
The accessor identifier that’s related to the error.
error (integer) –
The error code.
message (string) –
Description of the error.
Exceptions
rePostPrivate.Client.exceptions.ValidationExceptionrePostPrivate.Client.exceptions.AccessDeniedExceptionrePostPrivate.Client.exceptions.ResourceNotFoundExceptionrePostPrivate.Client.exceptions.ThrottlingExceptionrePostPrivate.Client.exceptions.InternalServerException