It's all about the answers!

Ask a question

admin - advanced properties configuration via REST API or any other API


Liora Milbaum (513282117) | asked Jul 04 '15, 11:10 a.m.
 CLM 6.0

How do I configure the CLM admin - advanced properties in a scripted manner?

I've tried using REST API to authenticate as explained in -  Authentication For JazzTeamServer Using cURL
Then hacked the curl command for configuring one configuration item -
curl "https://lmb-clm-server:9443/qm/service/com.ibm.team.repository.service.internal.IServerConfigurationRestService/configurationUpdates" -H "Origin: https://lmb-clm-server:9443" -H "Accept-Encoding: gzip, deflate" -H "Accept-Language: en-US,en;q=0.8,he;q=0.6" -H "x-com-ibm-team-scenario: 4330df20-12de-4cc9-81e0-4c4e53707b69;name=com.ibm.team.repository.admin.configureAdvanced/Save;extras=/qm/admin" -H "X-com-ibm-team-configuration-versions: LATEST" -H "User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36" -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "accept: text/json" -H "Referer: https://lmb-clm-server:9443/qm/admin" -H "X-Requested-With: XMLHttpRequest" -H "Connection: keep-alive" --data "updates="%"5B"%"7B"%"22name"%"22"%"3A"%"22activationKey"%"22"%"2C"%"22value"%"22"%"3A"%"22dabbad00-8872-36d4-b246-ca785dd63fde"%"22"%"2C"%"22serviceImplementationName"%"22"%"3A"%"22com.ibm.team.repository.service.internal.vvc.ConfigurationManagementActivationService"%"22"%"7D"%"5D" --compressed

The response was:
X-com-ibm-team-repository-web-auth-msg: authrequired

Liora






Comments
1
Donald Nong commented Jul 06 '15, 4:37 a.m.

Liora, as explained in the other post, there may not be any APIs that you can use for any administrative works.

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered Jul 07 '15, 10:51 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi Liora,

The Advanced Properties cannot be updated via a public REST API. 

See the (provisional) Process REST API (see https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi) for some limited management capability.

Your answer


Register or 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.