Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oura_api/mod.ts>Webhook#updateSubscription

Typescript project to interact with v2 of the Oura Ring API
Latest
method Webhook.prototype.updateSubscription
Re-export
import { Webhook } from "https://deno.land/x/oura_api@1.0.1/mod.ts";

Updates a webhook subscription.

Parameters

id: string
  • Subscription id in string format.
verificationToken: string
  • Your verification token used to verify Oura's calls to your API.
optional
callbackUrl: string
  • Callback URL used by Oura to post subscriptions to.
optional
eventType: EventType
  • One of the EventTypes.
optional
dataType: DataType
  • One of the DataTypes.

Returns

Promise<Subscription>

A Subscription typed object of the updated subscription.