Python requests | Invalid JSON data in request body: Syntax error

Подскажите, пожалуйста, что я делаю не так? Я чего-то долго не вижу :(

Получаю ошибку

{'name': 'Bad Request', 'message': 'Invalid JSON data in request body: Syntax error.', 'code': 0, 'status': 400}

Мой код:

else:

print("I didn’t find anything, I'll create a group")
requests_create_bundle_group = requests.post(
    url + method_name['find_bundle_group'], data=params, headers=headers)

res = requests_create_bundle_group.json()
print(res)

Где:

url = 'https://api.albato.ru'

method_name = {'auth': '/user/auth', 'bundle': '/bundle', 'find_bundle_group': '/bundle/group', 'delete_bundle': '/bundle/delete', 'credentials': '/credentials', 'update_bundle': '/bundle/group'}

headers = {'Content-Type': 'application/json', 'Authorization': 'Bearer {}'.format(auth_token)}

params = {'name': '2132'}

И вот что они ожидают увидеть ...


Ответы (0 шт):