Skip to content

Commit

Permalink
rotateSecret should be POST
Browse files Browse the repository at this point in the history
rotateSecret is currently PUT, whereas it should be POST
  • Loading branch information
atejada committed Oct 25, 2023
1 parent 0157f4b commit 7e6ad7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/nylas/resources/Webhooks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Webhooks(client: NylasClient) : Resource<Webhook>(client, Webhook::class.j
fun rotateSecret(webhookId: String): Response<WebhookWithSecret> {
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)
}

/**
Expand Down

0 comments on commit 7e6ad7d

Please sign in to comment.