Setting time zones using REST from the command line

Document ID : KB000106185
Last Modified Date : 12/07/2018
Show Technical Document Details
Introduction:
How can a CAPC user's timezone we changed using the REST API from the command line?
Environment:
CAPM 3.6
Instructions:
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