updateTimesheet function
Future<ApiResponse<Timesheets> >
updateTimesheet(
- ExsitedClient client,
- Object createdTimesheetId,
- Object payload, {
- bool? raiseOnError,
- String? responseFormat,
PATCH /api/{api_version}/timesheets/{timesheet_id}
Implementation
Future<ApiResponse<Timesheets>> updateTimesheet(
ExsitedClient client,
Object createdTimesheetId,
Object payload, {
bool? raiseOnError,
String? responseFormat,
}) =>
client.sendPatchRequest(TimesheetsUrls.timesheet,
pathParams: {'timesheet_id': createdTimesheetId},
jsonBody: payload,
raiseOnError: raiseOnError,
responseFormat: responseFormat,
dtoDecoder: Timesheets.fromMap);