It worked.
Thanks Rohit.
On Mon, Oct 27, 2014 at 11:32 PM, Rohit Yadav
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 example in case of “Asia
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 “Asia%252FSeoul”
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
Hi,
> On 27-Oct-2014, at 2:58 pm, Meghna Kale 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 debugged
> and found th
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 with