Create Test using Xray REST API and link to Test Set

I want to add a tests to testset using xray api. I heard that it is not possible through jira rest api.
Can anyone send me the xray api link. If possible send me the api doc