Team,
I am trying to call /dbconnection/signup api to create a user using python code
I user the following JSON
create_user_body = {
‘client_id’: ‘MY_CLIENT_ID’,
‘email’: ‘ganesh.kumar@reflectionsinfos.com’,
‘password’: ‘S3cr3t@nopass’,
‘connection’: ‘register-user-test-conn’
}
My request headers include
request_headers = {
‘Content-Type’: ‘application/json’,
‘Authorization’: f’Bearer {token}’
}
Url I try is
"https://<MY_DOMAIN>/dbconnections/signup
I am using python requests.post like below
response = requests.post(url, data=create_user_body, headers=request_headers)
But when I post the request I get 400 response code with b"invalid Json" text. I checked password strength, db connection name e t c and they are correct. I cannot figure out what is invalid with the json. Also the token i use in the request is obtained using the /ouath/token endpoint (Client credentials Flow). Can you please help?
Regards,
Ganesh