Skip to content

Commit 642220c

Browse files
KATTilyamerman
andauthored
Fix CreateWebhookRequest: optional token (#104)
Fix the typings of `CreateWebhookRequest` - the `token` is optional in the API. Co-authored-by: Ilya Merman <[email protected]>
1 parent 00bb221 commit 642220c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/webhooks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface CreateWebhookRequest {
6363
/**
6464
* The secret token(see Securing your webhooks).
6565
*/
66-
token: string
66+
token?: string
6767

6868
/**
6969
* The type of content you wish to receive. Always JsonAPI.
@@ -95,4 +95,4 @@ export interface PatchWebhookRequest {
9595
*/
9696
token?: string
9797
}
98-
}
98+
}

0 commit comments

Comments
 (0)