Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

REST API : Remove a project administrator

ELM 7.0.3

I want to use the REST API to remove one or more administrators from a project area.

"Multiple administrators" means a specific list of administrators.

The request details I am using are:

Method: "DELETE"
REST URL: hostname + "/" + application + "/process/project-areas/" + project.get_identifier() + "/admins"
Data: myXmlContent

I populate the payload with the list of administrators to be removed.

Currently, all administrators are being removed, without exception. I conclude that the method and URL are correct, but that the list of administrators is likely formatted incorrectly...

I consulted https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi#Admins_collection, but the "DELETE" section lacks detail, whereas the "POST" section works perfectly!

Does anyone have information regarding the "DELETE" operation?

Thanks in advance.

0 votes


Accepted answer

Permanent link

Request to use : DELETE https://<server>/jazz/process/project-areas/<projectAreaId>/admins/<userId>

Method: DELETE

URL: This is the value of the <jp:url> element for the relevant administrator, as it appears in the administrators collection (admins-url). 

Example : https://localhost:9443/jazz/process/project-areas/_unw40lykEeCNrNOX-RlzsA/admins/TestJazzUser1

Query parameters: none
Request body: none
Ian Barnard selected this answer as the correct answer

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,106
× 7,622
× 1,452

Question asked: Aug 28, 1:29 a.m.

Question was seen: 201 times

Last updated: Aug 28, 11:51 a.m.

Confirmation Cancel Confirm