API: Lead Details API no longer bringing in shifts information

Bill G. shared this problem 2 years ago
Solved

https://rental.software/support/knowledge-base/article/api-leads-retrieve-lead

You show a section for "shifts", yet when I hit the API, that is not in the JSON:

https://rental.software/api6/leads/7694231?apiKey=c0971a3a27e8ad06602a9acf7f8b9692

Working on the new hover and I need to bring in workerid and workerresponse from the shifts section. The lead id above has a shift and the worker has accepted.

Also, I want to customize the hover block based upon the current user's role - is there a way to get the current logged in users worker ID? If a sales person hits the hover, I want a certain set of info displayed related to payments, contract status, etc,; if an event manager hits it, I would show them weather, air quality, etc. - more logistics info.

Please let me know as I am trying to wrap up work on this to deploy.

Thanks so much for all the great new features!

Best Answer
photo

I figured out you added a parameter: &_body=true to get the full return

Thanks.

Comments (1)

photo
1

I figured out you added a parameter: &_body=true to get the full return

Thanks.

Leave a Comment
 
Attach a file