Possible to pull multiple IDs in one call?

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
Jupiter-Andrew
Posts: 5
Joined: Thu Oct 24, 2019 7:45 pm

Possible to pull multiple IDs in one call?

Post by Jupiter-Andrew » Thu Oct 24, 2019 7:49 pm

Hi all,

Consider the following cURL: https://myCompany.simprosuite.com/api/v ... stCenters/

Assume I know my cost center IDs are 11 through 15.

As far as I can tell, in order to get full data for 5 cost centers, I need to call the cURL 5 times appending an ID each time

Is there no way to call a range of results?

Perhaps by /costCenters/11-15 or /costCenters/11,15 ?
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: Possible to pull multiple IDs in one call?

Post by Muqeet » Fri Oct 25, 2019 12:21 am

Hi Andrew,

You can call https://mycompany.simprosuite.com/api/v ... isplay=all to get some data of all cost centers. However as you mentioned that you are looking for full cost center data, in that case you need to make multiple calls.

Thanks
Muqeet
Muqeet
API Developer | simPRO Software Group
Post Reply