comAtprotoSpaceNotifySpaceUpdate function

Future<XRPCResponse<EmptyData>> comAtprotoSpaceNotifySpaceUpdate({
  1. required String space,
  2. required String token,
  3. required USpaceNotifySpaceUpdateUpdate update,
  4. required ServiceContext $ctx,
  5. String? $service,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

Notify a syncing service of an update to a space. Sent by the space host to the notification endpoint registered through authorizeSpaceSync.

Implementation

Future<XRPCResponse<EmptyData>> comAtprotoSpaceNotifySpaceUpdate({
  required String space,
  required String token,
  required USpaceNotifySpaceUpdateUpdate update,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.comAtprotoSpaceNotifySpaceUpdate,
  service: $service,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    'space': space,
    'token': token,
    'update': update.toJson(),
  },
);