wixCrm.notifications.notify 400 error

I’m using a code I found on the forum:
Backend

import wixCrm from 'wix-crm-backend';

export function notifyOwnerOnDashboard(title, action,site,role) {
  wixCrm.notifications.notify(
 "Notification body", 
     ["Dashboard"], 
    {
 "title" : title,
 "actionTitle": action,
 "actionTarget": {"url": site},
 "recipients": { "role": role}
    }
 
  );
   console.log('Notification sent')
}

In page

import {notifyOwnerOnDashboard} from 'backend/Notification';

export function Notifyteam() {
 const title = "I'm a title"
 const action = "This is what I have done" ;
 const site = "www.google.com" ; // use full URL link
 const role = "Owner";    
    notifyOwnerOnDashboard(title,action,site,role)

}

export function btnNotification_click(event) {
    Notifyteam()
}

but copying it exactly the same gives me this error:


How can i fix this?

Hi there, if you’re unable to find a response here, I recommend asking in our Corvid forum as well.

I wrote here just because in the other forum they don’t answer

@bdevelopment2019 maybe @thrishtilabs or @wingcc can provide some insight as to why this may be happening.