Date: Thu, 28 Mar 2024 14:03:22 +0000 (UTC) Message-ID: <1280715483.29.1711634602923@f867b2fb7fd0> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_28_1399255404.1711634602923" ------=_Part_28_1399255404.1711634602923 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
SINCE= 3.1.6
The following is the list of public API=E2=80=99s which can be used to d= rive different functionality on JEMH Profile.
This will export a single profile nominated by Profile Id to file profile.xml
To export the group profile, nominate the Default Profile Id from group profile.
curl -u= admin:admin -X GET -H "X-Atlassian-Token: no-check" http://localhost:8080/= rest/jemh/latest/public/profile/export?profileId=3D1 > profile.xml
This will import the file profile.xml from the current folder i= nto JEMH (works for both Independent/Group Profile). Additional parameters are to be provided (defaulted to = false):
Auto-create Missing Projects
Auto-create Missing Custom Fields
Fix Users
Fix Issue Types.
curl -u= admin:admin -F "uploadProfile=3D@profile.xml" -H "X-Atlassian-Token: no-ch= eck" 'http://localhost:8080/rest/jemh/latest/public/profile/import?fixProje= cts=3Dtrue&fixCustomFields=3Dtrue&fixUsers=3Dtrue&fixIssue=3Dtr= ue'
This will upload the file profile.xml from the current folder, = causing the profile nominated by Profile Id to have its co= nfiguration updated. This process is not atomic, we remove all Project Mapp= ings, and rebuild from the supplied configuration, all remaining values are= =E2=80=98set=E2=80=99 live, i.e, such updates should be done in a maintena= nce window.
curl -u= admin:admin -F "uploadProfileXml=3D@profile.xml" -H "X-Atlassian-Token: no= -check" http://localhost:8080/rest/jemh/latest/public/profile/update?profil= eId=3D1
Delete the profile nominated by id. To delete the group= profile, nominate the Default Profile Id from group profi= le.
curl -u= admin:admin -X DELETE -H "X-Atlassian-Token: no-check" http://localhost:80= 80/rest/jemh/latest/public/profile/delete?profileId=3D3