400 error when attempt to disable inactive user
400 error when attempt to disable inactive user
user_status={'isActive':'false'}
header = {'Content-Type': 'application/json'}
try:
r = requests.put(url=URL + "/" + uid, headers=header, auth=(SUMO_ACCESS_ID,SUMO_ACCESS_KEY), params=user_status)
r.raise_for_status()
when execute above code got following error. Can anyone please help
400 Client Error: Bad Request
-
Official comment
Hi Xiao,
we have a community python library. It doesn't have methods for user api but the code would be very similar. https://github.com/SumoLogic/sumologic-python-sdk/blob/main/sumologic/sumologic.py
You don't have a url listed above but make sure you have the correct endpoint for your deployment - for example us2.
Comment actions
Please sign in to leave a comment.
Comments
1 comment