Assigning resource to service through code

Hi. I’ve managed to create a resource for wix bookings through the backend functions https://www.wix.com/velo/reference/wix-bookings-backend/resources/createresource

Is it possible to assign the resource to a particular service? I don’t see any information on that.

Do help out if there’s any updates/advice.
Thanks!