diff --git a/src/main/kotlin/com/nylas/resources/Webhooks.kt b/src/main/kotlin/com/nylas/resources/Webhooks.kt index d77ac43a..5e6d1819 100644 --- a/src/main/kotlin/com/nylas/resources/Webhooks.kt +++ b/src/main/kotlin/com/nylas/resources/Webhooks.kt @@ -80,7 +80,7 @@ class Webhooks(client: NylasClient) : Resource(client, Webhook::class.j fun rotateSecret(webhookId: String): Response { val path = String.format("v3/webhooks/%s/rotate-secret", webhookId) val responseType = Types.newParameterizedType(Response::class.java, WebhookWithSecret::class.java) - return client.executePut(path, responseType) + return client.executePost(path, responseType) } /**