# Group\_permissions using api in python

**URL:** <https://meta.discourse.org/t/group-permissions-using-api-in-python/81813>\
**Category:** Product Support\
**Created:** [February 28, 2018, 7:04pm UTC](https://meta.discourse.org/t/group-permissions-using-api-in-python/81813 "2018-02-28T19:04:18Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![David\_fs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david_fs/32/88716_2.png) [@David\_fs](https://meta.discourse.org/u/David_fs)\
**Post date:** [March 5, 2018, 10:27am UTC](https://meta.discourse.org/t/group-permissions-using-api-in-python/81813/8 "2018-03-05T10:27:55Z")

</div>

I see what you both mean - thanks.

@blake your highlighted line is a little different to my issue because of the following:

The line you highlighted is simply adding in a new key value to the params. Where I am trying to add a new key who’s value is **also** a bunch of key/value pairs. This value of key-value pairs isn’t being parsed correctly by the requests library or I am doing something wrong(more likely).

There is clearly something I am not understanding here in terms of why the following two things are different.

```
# building the dict/keyvalue object in python like so as you guys are saying:
hash = {}
hash['new_key']="new value"

```

and

#Building the same object - like so:

```
hash = {'new_key": "new value"}

```

There doesn’t seem to be a diffence and I don’t really see how this changes when I pass the same object into the params argument of the requests field.

---

_[View the full topic](https://meta.discourse.org/t/group-permissions-using-api-in-python/81813)._
