batchUpdateSchedule method
Future<BatchUpdateScheduleResponse>
batchUpdateSchedule({
- required String channelId,
- BatchScheduleActionCreateRequest? creates,
- BatchScheduleActionDeleteRequest? deletes,
Update a channel schedule
May throw BadGatewayException.
May throw BadRequestException.
May throw ForbiddenException.
May throw GatewayTimeoutException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnprocessableEntityException.
Parameter channelId :
Id of the channel whose schedule is being updated.
Parameter creates :
Schedule actions to create in the schedule.
Parameter deletes :
Schedule actions to delete from the schedule.
Implementation
Future<BatchUpdateScheduleResponse> batchUpdateSchedule({
required String channelId,
BatchScheduleActionCreateRequest? creates,
BatchScheduleActionDeleteRequest? deletes,
}) async {
final $payload = <String, dynamic>{
if (creates != null) 'creates': creates,
if (deletes != null) 'deletes': deletes,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/prod/channels/${Uri.encodeComponent(channelId)}/schedule',
exceptionFnMap: _exceptionFns,
);
return BatchUpdateScheduleResponse.fromJson(response);
}