Photos API to create albums and link photos to it

Nextcloud version (eg, 20.0.5): 27.1.4
Operating system and version (eg, Ubuntu 20.04): Rocky 9
Apache or nginx version (eg, Apache 2.4.25): 2.5.7
PHP version (eg, 7.4): 8.1.26

I have imported a whole bunch of photos some 80K to Nextcloud.
They are unsorted but I have a json that contains the Album information.

I been searching but have not been able to find out if there is an API for creating an Album and then add photos and videos to it?

I found a link to a pull request for an API using DAV, but I could not find it documented anyware, and also it seemed to use the “Copy” function, and i’m not sure if that is the correct way, as from what I can see in the web gui of Photos app it does not make a copy of the photo into the Album in a sense of making an actual copy, but rather a pointer.

So can anyone tell me if there is an API where I can create an album and then assign photos to it?

Maybe Les Pas will suit you?