wixEvents.updateEvent Forbidden?

Can anyone explain why I’m getting this message:-

message: '' 
details:   
    applicationError:     
        description: Forbidden     
        code: FORBIDDEN     
        data: {}

I’ve extracted the function into a smaller .jsw :-

import { wixEvents } from "wix-events-backend";
import wixData from 'wix-data';

export function eventUpdate(eventId, toUpdateEvent) {
    console.log(eventId, toUpdateEvent);
    let updateOptions={
        "language": "en"
    };
    
    wixEvents.updateEvent(eventId, toUpdateEvent, updateOptions)
    .then((results) => {
        console.log(results);
        return results;
    })
    .catch((error) => {
        console.error(error);
    });
}

One other slightly odd behaviour is that I have to have the language option even though the API documentation says it’s optional.
This is really holding up the release of the website so I hope someone can help fix it.

Many thanks

Hello, my guess here is that the user permission level calling the function is not correct. As you will see in the documentation…

“Only those with “Manage Events” permissions can update Wix events.”

See if the permissions have somehting to do with it.