Resource REST Endpoints

Resource
The Resource service enables you to create, view, update, and delete resources. Resources represent any quantifiable item you can track and assign to specific activities in a project. Update Keys : 'resourceId'
Assign or Promote a Resource
Method: post
Path: /primeapi/restapi/resource/replicateObjectInWorkspaces/resource/{resourceId}/workspace/{workspaceId}
Batch Create Resources or Roles
Method: post
Path: /primeapi/restapi/resource/batch
Batch Delete Resources or Roles
Method: delete
Path: /primeapi/restapi/resource/batch
Batch Delete Workspace Resources or Roles
Method: delete
Path: /primeapi/restapi/resource/workspaceResource/batch
Batch Integrate Resources with an External Data Source
Method: post
Path: /primeapi/restapi/resource/syncBatch
Batch Update Resources or Roles
Method: put
Path: /primeapi/restapi/resource/batch
Delete a Resource or Role
Method: delete
Path: /primeapi/restapi/resource/{id}
Delete a Workspace Resource or Role
Method: delete
Path: /primeapi/restapi/resource/workspaceResource/{workspaceResourceId}
Integrate a Resource with an External Data Source
Method: post
Path: /primeapi/restapi/resource/sync
View a resource by code
Method: get
Path: /primeapi/restapi/resource/byItemCode?workspaceCode={workspaceCode}&resourceCode={resourceCode}
View a Resource by Code and Type
Method: get
Path: /primeapi/restapi/resource/code/{code}/type/{type}
View a Resource by Resource Class
Method: get
Path: /primeapi/restapi/resource?type={type}
View a Resource or Role
Method: get
Path: /primeapi/restapi/resource/{id}
View All Child Resources and Roles by Resource Hierarchy
Method: get
Path: /primeapi/restapi/resource/{id}/type/{type}/childrenHierarchy
View all resources by parent code
Method: get
Path: /primeapi/restapi/resource/byParent?workspaceCode={workspaceCode}
View Integrated Resources
Method: get
Path: /primeapi/restapi/resource/externallySourced
View Resources and Roles by Workspace
Method: get
Path: /primeapi/restapi/resource/workspace/{id}
View Resources by Assigned Code Value
Method: get
Path: /primeapi/restapi/resource/codeType/{typeId}/codeValue/{code}
View Resources or Roles by Project
Method: get
Path: /primeapi/restapi/resource/projectId/{id}
View Workspace Resources or Roles by Workspace and Resource Class
Method: get
Path: /primeapi/restapi/resource/workspaceResource/workspace/{workspaceId}?type={type}