createResource( )


Creates a resource.

について createResource() function returns a Promise that resolves to the created resource. Bookings resources are created with a schedule. The schedule determines the resource's availability by the business's default working hours.

When creating a resource using createResource(), get the business resource's schedule ID and include it in the schedules object. The default hours can bee found in the Dashboard under 設定 in the 予約 section, on the Appointment hours page.

注釈

  • The Wix Bookings app shows default business hours on the Staff page in the dashboard.
  • A resource can have one schedule only.
  • You can have up to 135 active resources and an additional 135 deleted resources.
Permissions
Manage Bookings
Manage Bookings - all permissions
Learn more about app permissions.
メソッド宣言
コピー
メソッド・パラメータ
resourceResourceRequired

Resource to create.


optionsCreateResourceOptions

Options for assigning a schedule to a resource.

リターン
Return Type:Promise<Resource>
役に立ちましたか?
はい
いいえ