updateMember method
Future<XRPCResponse<Member> >
updateMember({
- required String did,
- bool? disabled,
- UUpdateMemberRole? role,
- Map<
String, String> ? $unknown, - Map<
String, String> ? $headers, - PostClient? $client,
Update a member in the ozone service. Requires admin role.
https://atprotodart.com/docs/lexicons/tools/ozone/team/updateMember
Implementation
Future<XRPCResponse<Member>> updateMember({
required String did,
bool? disabled,
UUpdateMemberRole? role,
Map<String, String>? $unknown,
Map<String, String>? $headers,
PostClient? $client,
}) async =>
await _ctx.post<Member>(
ns.toolsOzoneTeamUpdateMember,
headers: $headers,
body: {
'did': did,
if (disabled != null) 'disabled': disabled,
if (role != null) 'role': role.toJson(),
...?$unknown,
},
to: const MemberConverter().fromJson,
client: $client,
);