diff --git a/src/main/kotlin/com/nylas/resources/Calendars.kt b/src/main/kotlin/com/nylas/resources/Calendars.kt index 14e991e4..8b8889f1 100644 --- a/src/main/kotlin/com/nylas/resources/Calendars.kt +++ b/src/main/kotlin/com/nylas/resources/Calendars.kt @@ -94,7 +94,9 @@ class Calendars(client: NylasClient) : Resource(client, Calendar::clas .adapter(GetAvailabilityRequest::class.java) .toJson(request) - return client.executePost(path, GetAvailabilityResponse::class.java, serializedRequestBody) + val responseType = Types.newParameterizedType(Response::class.java, GetAvailabilityResponse::class.java) + + return client.executePost(path, responseType, serializedRequestBody) } /**