cat_gon Respected Contributor.
Respected Contributor.
326 views

Reject SP Resource Request via Webservice

Hi everyone,

Is there a webservice to reject a SP resource request?

Thank you.

Cath

0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: Reject SP Resource Request via Webservice

Hi Cath,

Short answer is "No", but as usual there's always a way if you're willing to go down the path of unsupported REST APIs.

Go to the manage allocation page (make sure to use the new Gantt view), and reject a position while monitoring HTTP requests sent by your browser (using either your browser's dev tools or Fiddler). You'll see that it'll do a POST /rest2/position/reject with a JSon payload including the comments and the position info. It'll pass all the position details, but I don't think you need to pass the full details for it to work - I guess you'll need to experiment and see what works for you.

As this is not an officially supported API, it's up to you to do the reverse engineering if you really decide to use this.

Good Luck!

Etienne.

 

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.