comAtprotoSpaceCreateSpace function
Create a new space, with the authenticated account as its authority. Requires auth, implemented by PDS.
Implementation
Future<XRPCResponse<SpaceCreateSpaceOutput>> comAtprotoSpaceCreateSpace({
required String spaceType,
String? skey,
required USpaceCreateSpacePolicy policy,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.comAtprotoSpaceCreateSpace,
service: $service,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'spaceType': spaceType,
if (skey != null) 'skey': skey,
'policy': policy.toJson(),
},
to: const SpaceCreateSpaceOutputConverter().fromJson,
);