updateSpace method

Future<XRPCResponse<EmptyData>> updateSpace({
  1. required String space,
  2. required USpaceUpdateSpacePolicy policy,
  3. String? $service,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

Replace the policy of a space. Changing to a different policy type discards state held by the previous policy, such as a member list. Requires auth as the space authority, implemented by PDS.

Implementation

Future<XRPCResponse<EmptyData>> updateSpace({
  required String space,
  required USpaceUpdateSpacePolicy policy,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await comAtprotoSpaceUpdateSpace(
  space: space,
  policy: policy,
  $ctx: ctx,
  $service: $service,
  $headers: $headers,
  $unknown: $unknown,
);