AndyXW
TFDThoughtSpot For Developers
•Created by AndyXW on 5/1/2024 in #dev-help
400 error
Thanks Ashish!
Actually, on my own server, I am no longer getting the 400 error (even though I didn't change the code lol). My code is working now!
6 replies
TFDThoughtSpot For Developers
•Created by AndyXW on 5/1/2024 in #dev-help
400 error
^ all of this was directly copy pasted from the thoughtspot playground, I didn't change or write any of it.
6 replies
TFDThoughtSpot For Developers
•Created by AndyXW on 5/1/2024 in #dev-help
400 error
So I just opened the Thoughtspot restv2 playground for create users
Link to page - https://developers.thoughtspot.com/docs/restV2-playground?apiResourceId=http%2Fapi-endpoints%2Fusers%2Fcreate-user
I did not make any changes to the request body at all, I just hit the "TRY IT OUT" button.
This is the Request input
curl -X POST \
--url 'https://try-everywhere.thoughtspot.cloud/api/rest/2.0/users/create' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ZGVtb19kZXZ1c2VyOkpITm9hWEp2TVNSVFNFRXRNalUySkRVd01EQXdNQ1F4ZFVWdVduQlJNRXRSYkRsb01HWkthMk4zZVRkM1BUMGtaelJDZVRkVllrTndhbFZVVjNoNGExSk9UelF2YXpoTFdrbGxUMjVhVjAxdGRsVmpNMWRrSzFwTFNUMA==' \
--data-raw '{
"name": "name6",
"display_name": "display_name6",
"email": "email0",
"account_type": "LOCAL_USER",
"account_status": "ACTIVE",
"visibility": "SHARABLE",
"notify_on_share": true,
"show_onboarding_experience": true,
"onboarding_experience_completed": false
}'
6 replies