Re: [API] Create/update user issue

2014-11-05 Thread Meghna Kale
It worked. Thanks Rohit. On Mon, Oct 27, 2014 at 11:32 PM, Rohit Yadav rohit.ya...@shapeblue.com wrote: Hi Meghna, The timezone [2] that you provide to this python script already URL encodes the string in the param dictionary [1]. So, if you give it a timezone with a “/“ character, for

[API] Create/update user issue

2014-10-27 Thread Meghna Kale
Hi, I'm was trying to call Cloudstack create/update user API from a python script. But when I add or update timezone it fails with 401 error code. I debugged and found that timezone has a special character '/'. I replaced it with '%2F', the API call returns success but it updates the timezone

Re: [API] Create/update user issue

2014-10-27 Thread Rohit Yadav
Hi, On 27-Oct-2014, at 2:58 pm, Meghna Kale meghna.k...@sungardas.com wrote: I'm was trying to call Cloudstack create/update user API from a python script. Can you share the python script? Perhaps it was assume some data? But when I add or update timezone it fails with 401 error code. I

Re: [API] Create/update user issue

2014-10-27 Thread Meghna Kale
Thanks Rohit for the reply. Python script - I just found it on internet. request_type = 'GET' params = { 'command':'updateUser', 'id':user_id } if email: params['email'] = email if first_name: params['firstname'] = first_name

Re: [API] Create/update user issue

2014-10-27 Thread Rohit Yadav
Hi Meghna, The timezone [2] that you provide to this python script already URL encodes the string in the param dictionary [1]. So, if you give it a timezone with a “/“ character, for example in case of “Asia/Kolkata” if you give it “Asia%2FKolkata” then the URL encoded value is