toolsOzoneQueueUpdateQueue function

Future<XRPCResponse<QueueUpdateQueueOutput>> toolsOzoneQueueUpdateQueue({
  1. required int queueId,
  2. String? name,
  3. bool? enabled,
  4. String? description,
  5. required ServiceContext $ctx,
  6. String? $service,
  7. Map<String, String>? $headers,
  8. Map<String, String>? $unknown,
})

Update queue properties. Currently only supports updating the name and enabled status to prevent configuration conflicts.

Implementation

Future<XRPCResponse<QueueUpdateQueueOutput>> toolsOzoneQueueUpdateQueue({
  required int queueId,
  String? name,
  bool? enabled,
  String? description,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.toolsOzoneQueueUpdateQueue,
  service: $service,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    'queueId': queueId,
    if (name != null) 'name': name,
    if (enabled != null) 'enabled': enabled,
    if (description != null) 'description': description,
  },
  to: const QueueUpdateQueueOutputConverter().fromJson,
);