I'm playing with ProjectOnline and trying to use REST APIs to create projects and tasks etc. I have managed to add a project using following REST call
https://<domain>.sharepoint.com/sites/pwa/_api/ProjectServer/Projects/Add
However when I try to add Task or a Resource to the created project it gives me error "Cannot find resource for the request Add". Could you please let me know what I'm doing wrong.
My REST call is this
https://<domain>.sharepoint.com/sites/pwa/_api/ProjectServer/Projects('<project ID>')/Tasks/Add
The project ID is the ID of the Project created using the REST call 1.