dsouther | 2016-09-16 20:03:37 UTC | #1
Is there any way to get a list of direct reports for a given user? I would like to build reports for team leads that are based on who is listed as reporting to them in the directory.
KevinGlinski | 2016-09-19 18:59:27 UTC | #2
Not currently, this came up in our planning meeting this morning and we are going to start getting those missing pieces in place. I don't have an ETA or where this one ranks in the priority list, but it is tracked under API-1702
dsouther | 2016-11-02 18:43:21 UTC | #3
I saw this in the API documentation; however, i'm getting a 404 error, even when using the developer tools
{ status: 404, code: 'not.found', message: 'The requested operation failed with status 404', contextId: 'f2db0ea7-9666-45b5-905f-54369d44206b', details: [], errors: [] }
tim.smith | 2016-11-02 18:51:51 UTC | #4
I tried GET /api/v2/users/{userId}/directreports and am also getting a 404. I've opened API-2061 for this issue.
tim.smith | 2016-11-03 19:01:01 UTC | #5
API-2061 is waiting on another service to be deployed to production. This should be resolved next week.
dkprado | 2017-06-29 20:02:11 UTC | #6
Hi Tim! Is there any API Entry Point for creating / requesting reports, just like in the reports menu option? Or would be the ODE a better solution for extracting the data I want?
tim.smith | 2017-06-30 14:20:52 UTC | #7
You can run reports using the report APIs in the Analytics category. If you need custom reports, a custom solution like the ODE project or your own customization is required.
dkprado | 2017-07-05 19:32:18 UTC | #8
Thanks for the reply, Tim. I'm still a little confused, though. My automation App uses an OAUTH access. I would like to create a report, run the report and get the result URL, using this account, through the API. Checking the Analytics/Reporting interface, I see that I can schedule a report. But I don't see how I could create a report. Would that be possible?
Thanks.
tim.smith | 2017-07-05 20:13:54 UTC | #9
You can use POST /api/v2/analytics/reporting/schedules to schedule/create a report. If you need guidance on what fields to populate or what data to populate them with, take a look at the network tab when creating a new report (https://apps.mypurecloud.com/platform/api/v2/analytics/reporting/schedules) and look for the request to POST https://apps.mypurecloud.com/platform/api/v2/analytics/reporting/schedules and inspect the request payload.
edit: To clarify, if by "create a report" you mean design a custom report with your own formulas, that isn't part of the product.
dkprado | 2017-07-05 20:12:25 UTC | #10
Thanks Tim. I believe that covers what I need. I will take a deeper look into it.
system | 2017-08-28 19:27:18 UTC | #11
This post was migrated from the old Developer Forum.
ref: 407