Forum Discussion
rohanw24
Jan 30, 2021Brass Contributor
Project Online ReST API Resource
Hello Everyone, I've few questions in regards to resource: 1. What is the difference between the enterprise and project resource? 2. I want to update existing resource, what are the ReST end...
Paul_Mather
Jan 31, 2021MVP
Hello rohanw24
Enterprise Resources (https://{pwaUrl}/_api/ProjectServer/EnterpriseResources ) is the API that allows management of the Project Online Enterprise Resource pool. Where as Project Resources (https://{pwaUrl}/_api/ProjectServer/Projects('{projectGuid}')/ProjectResources) are the resources added to that project team.
Here is an example adding resources to the project using the ProjectResources endpoint: https://github.com/OfficeDev/Project-Samples/blob/master/O365-Project-Online-REST-Samples/createproject.ps1
Here is an example using the EnterpriseResource pool endpoint: https://pholpar.wordpress.com/2016/07/26/creating-project-server-enterprise-resources-via-rest/
Paul