diff --git a/src/resource_clients/schedule_collection.ts b/src/resource_clients/schedule_collection.ts index 43b7066d..fa0d43fa 100644 --- a/src/resource_clients/schedule_collection.ts +++ b/src/resource_clients/schedule_collection.ts @@ -80,7 +80,7 @@ export class ScheduleCollectionClient extends ResourceCollectionClient { * @returns The created schedule object. * @see https://docs.apify.com/api/v2/schedules-post */ - async create(schedule: ScheduleCreateOrUpdateData): Promise { + async create(schedule?: ScheduleCreateOrUpdateData): Promise { ow(schedule, ow.optional.object); return this._create(schedule); diff --git a/src/resource_clients/webhook_collection.ts b/src/resource_clients/webhook_collection.ts index ce39dbcd..f5699d8d 100644 --- a/src/resource_clients/webhook_collection.ts +++ b/src/resource_clients/webhook_collection.ts @@ -82,7 +82,7 @@ export class WebhookCollectionClient extends ResourceCollectionClient { * @returns The created webhook object. * @see https://docs.apify.com/api/v2/webhooks-post */ - async create(webhook: WebhookUpdateData): Promise { + async create(webhook?: WebhookUpdateData): Promise { ow(webhook, ow.optional.object); return this._create(webhook);