toolsOzoneSetUpsertSet function

Future<XRPCResponse<SetView>> toolsOzoneSetUpsertSet({
  1. required String name,
  2. String? description,
  3. required ServiceContext $ctx,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

Create or update set metadata

Implementation

Future<XRPCResponse<SetView>> toolsOzoneSetUpsertSet({
  required String name,
  String? description,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.toolsOzoneSetUpsertSet,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    'name': name,
    if (description != null) 'description': description,
  },
  to: const SetViewConverter().fromJson,
);