addMember method
Future<XRPCResponse<Member> >
addMember({
- required String did,
- required UAddMemberRole role,
- Map<
String, String> ? $unknown, - Map<
String, String> ? $headers, - PostClient? $client,
Add a member to the ozone team. Requires admin role.
https://atprotodart.com/docs/lexicons/tools/ozone/team/addMember
Implementation
Future<XRPCResponse<Member>> addMember({
required String did,
required UAddMemberRole role,
Map<String, String>? $unknown,
Map<String, String>? $headers,
PostClient? $client,
}) async =>
await _ctx.post<Member>(
ns.toolsOzoneTeamAddMember,
headers: $headers,
body: {
'did': did,
'role': role.toJson(),
...?$unknown,
},
to: const MemberConverter().fromJson,
client: $client,
);