Setting time zones using REST from the command line

book

Article ID: 106185

calendar_today

Updated On:

Products

CA Infrastructure Management CA Infrastructure Management CA Performance Management - Usage and Administration CA Performance Management - Data Polling

Issue/Introduction

How can a CAPC user's timezone we changed using the REST API from the command line?

Environment

CAPM 3.6

Resolution

Run the following command: 
curl -vvv -H "Content-Type: application/XML" -u admin:admin -X PUT http://<CAPC>:8181/pc/center/webservice/users/userName/<user>/timeZone/<timezone>

Ex: curl -vvv -H "Content-Type: application/XML" -u admin:admin -X PUT http://CAPC:8181/pc/center/webservice/users/userName/Joe/timeZone/America%2fIndiana%2fIndianapolis