If one of the inputs for a Sharing Right is invalid, none of the Sharing Rights will be created.
Only one Sharing Right can exist "per lock per source per user". A "source" means in what context the Sharing Right was created, in this case the Project. If you try creating a Sharing Right that already exists, the API call will fail
Click Try It! to start a request and see the response here!