@Stefanova Vesela (IOC/PDL-TQ)
There is a sample available here which I believe is what you are looking for. You will probably find the REST API example helpful to better understand some of the terms.
Hope this helps. Let us know if you need further assistance or have further questions.
-------------------------------
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.