Project Online ReST API Resource

%3CLINGO-SUB%20id%3D%22lingo-sub-2108877%22%20slang%3D%22en-US%22%3EProject%20Online%20ReST%20API%20Resource%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2108877%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20few%20questions%20in%20regards%20to%20resource%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20What%20is%20the%20difference%20between%20the%20enterprise%20and%20project%20resource%3F%3C%2FP%3E%3CP%3E2.%20I%20want%20to%20update%20existing%20resource%2C%20what%20are%20the%20ReST%20endpoints%20for%20both%20types%20of%20resources%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20%26amp%3B%20Regards%2C%3C%2FP%3E%3CP%3ERohan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2108877%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOnline%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EProject%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EProject%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2109491%22%20slang%3D%22en-US%22%3ERe%3A%20Project%20Online%20ReST%20API%20Resource%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2109491%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F939454%22%20target%3D%22_blank%22%3E%40rohanw24%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EEnterprise%20Resources%20(https%3A%2F%2F%7BpwaUrl%7D%2F_api%2FProjectServer%2FEnterpriseResources%26nbsp%3B)%20is%20the%20API%20that%20allows%20management%20of%20the%20Project%20Online%20Enterprise%20Resource%20pool.%20Where%20as%20Project%20Resources%20(https%3A%2F%2F%7BpwaUrl%7D%2F_api%2FProjectServer%2FProjects('%7BprojectGuid%7D')%2FProjectResources)%26nbsp%3B%26nbsp%3Bare%20the%20resources%20added%20to%20that%20project%20team.%3C%2FP%3E%0A%3CP%3EHere%20is%20an%20example%20adding%20resources%20to%20the%20project%20using%20the%20ProjectResources%20endpoint%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2FProject-Samples%2Fblob%2Fmaster%2FO365-Project-Online-REST-Samples%2Fcreateproject.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FOfficeDev%2FProject-Samples%2Fblob%2Fmaster%2FO365-Project-Online-REST-Samples%2Fcreateproject.ps1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20is%20an%20example%20using%20the%20EnterpriseResource%20pool%20endpoint%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fpholpar.wordpress.com%2F2016%2F07%2F26%2Fcreating-project-server-enterprise-resources-via-rest%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fpholpar.wordpress.com%2F2016%2F07%2F26%2Fcreating-project-server-enterprise-resources-via-rest%2F%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPaul%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

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 endpoints for both types of resources?

 

Thanks & Regards,

Rohan

1 Reply

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/createproj... 

Here is an example using the EnterpriseResource pool endpoint: https://pholpar.wordpress.com/2016/07/26/creating-project-server-enterprise-resources-via-rest/ 

Paul