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.
Accepted answer
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