API V3 trouble

API V3 trouble

Hello. I can create task throw API but when i try assign request to group throw API V3 i got "internal error".
part of Python code:

apiurl=url+"/api/v3/tasks"
INPUT_DATA={"task": {"status": {"name": "In Progress"}, "request": {"id": "11"}, "group": {"id": 13}, "description": "just test", "title": "test task"}}
INPUT_DATA= json.dumps(INPUT_DATA,encoding='cp1251')
data = {"INPUT_DATA":INPUT_DATA}
r = s.post(apiurl,data,headers=headers)

apiurl=url+"/api/v3/requests/11/assign"
INPUT_DATA={"request": {"group": {"id": 13}}}
INPUT_DATA= json.dumps(INPUT_DATA,encoding='cp1251')
data = {"INPUT_DATA":INPUT_DATA}
r = s.post(apiurl,data,headers=headers)

If i try past json to rest api documentation all ok
i enter request id: 11
enter json: {"request": {"group": {"id": 13}}}
press Try Now. And group succesful changed.

Whats wrong?

                  New to ADSelfService Plus?