comAtprotoAdminUpdateSubjectStatus function
Future<XRPCResponse<AdminUpdateSubjectStatusOutput> >
comAtprotoAdminUpdateSubjectStatus({
- required UAdminUpdateSubjectStatusSubject subject,
- StatusAttr? takedown,
- StatusAttr? deactivated,
- required ServiceContext $ctx,
- Map<
String, String> ? $headers, - Map<
String, String> ? $unknown,
Update the service-specific admin status of a subject (account, record, or blob).
Implementation
Future<XRPCResponse<AdminUpdateSubjectStatusOutput>>
comAtprotoAdminUpdateSubjectStatus({
required UAdminUpdateSubjectStatusSubject subject,
StatusAttr? takedown,
StatusAttr? deactivated,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.comAtprotoAdminUpdateSubjectStatus,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'subject': subject.toJson(),
if (takedown != null) 'takedown': takedown.toJson(),
if (deactivated != null) 'deactivated': deactivated.toJson(),
},
to: const AdminUpdateSubjectStatusOutputConverter().fromJson,
);