createSession() requires at least one resource

I have a question regarding the createSession() function on velo. I am attempting to add new sessions to my service (under wix bookings). However, I am met with this error. I am perplexed by the error as the function doesn’t require “resources” as a parameter. I have also tried assigning resources to the service in the wix dashboard but the same error occurs. I tried querying existing sessions but I do not see a “resources” being returned in the object.

For reference, I used the service’s scheduleId for the createSession() function, the parameters I entered into the function is consistent with what I retrieved in the return object from existing sessions (which were added through the wix dashboard). The service I am trying to add sessions for is a class type.

If anyone requires the codes, here they are

Backend (exported to page):

export const createNonRecurringSessions = webMethod(

Permissions.Anyone,

(sessionInfo) => {

    **const** options = { suppressAuth: **true** };

    **return** sessions

        .createSession(sessionInfo, options)

        .then((session) => {

            **return** session;

        })

        .**catch**((error) => {

            console.error("Failed to create session:", error);

        });

},

);

Page codes:
const sessionInfo = {

    scheduleId: "2dd4802f-de2b-440f-bd20-a94da5e6a9da",

    start: { timestamp: **new** Date("2025-09-15T12:00:00.000-07:00"), },

    end: { timestamp: **new** Date("2025-09-15T13:00:00.000-07:00"), },

    type: "EVENT"

};

// This part triggers the function on click

$w(‘#button9’).onClick(async () => {

    **const** test = **await** createNonRecurringSessions(sessionInfo)

    console.log("Created session", test)

});