Forums » GOautodial API »
Need help goDeleteUser
Added by Kirill Ragimov about 3 years ago
Hi,
Need help writing a post request to delete a user account.
Gives error all the time
{"code":"40001","result":"Error: Missing required parameters "}
But what is the required parameter? help compose
I also wanted to ask what session_user is responsible for, since when any parameter is entered into it, creating and viewing accounts works
Replies (11)
RE: Need help goDeleteUser
-
Added by Levy Ryan Nolasco about 3 years ago
Hi,
May we know what API are you trying to access. Could you also send a larger screenshot.
RE: Need help goDeleteUser
-
Added by Levy Ryan Nolasco about 3 years ago
Hi,
Include the user_id parameter and parameter value should be array.
RE: Need help goDeleteUser
-
Added by Kirill Ragimov about 3 years ago
Thx Levy Ryan Nolasco
Hi,
I ask you to show an example of a request to delete a user by user_id or user
Thx
RE: Need help goDeleteUser
-
Added by Levy Ryan Nolasco almost 3 years ago
Hi,
If you want to delete it directly via URL try this:
&user_id[]=agent001
If you are trying to delete more than 1 user try this:
&user_id[]=agent001&user_id[]=agent002&user_id[]=agent003
RE: Need help goDeleteUser
-
Added by Kirill Ragimov almost 3 years ago
Hi
Your advice does not work, an empty response body comes in response
RE: Need help goDeleteUser
-
Added by Levy Ryan Nolasco almost 3 years ago
Hi,
May we know the process and how did you execute the command. Please post some screenshots
RE: Need help goDeleteUser
-
Added by Kirill Ragimov almost 3 years ago
Hi,
The first thing I do is request information about the user
to get user_id and user
https://disk.yandex.ru/i/e70qyoC8nMkE4w
Further, according to the instructions, I select user or user_id to delete the user, since it is indicated that one of the two identifiers is needed
I do not add a parameter for deleting several users, since I am deleting one user
When trying to delete by user
I get an error
{"code":"40001","result":"Error: Missing required parameters "}
https://disk.yandex.ru/i/Z5CUW3CM-f1y8A
When I try to delete by user_id, I get an empty json response of two lines
https://disk.yandex.ru/i/jOxlUUut-hMEfA
I tried to add 2 square brackets as suggested above, but the result is the same, in response 2 empty lines
RE: Need help goDeleteUser
-
Added by Levy Ryan Nolasco almost 3 years ago
Hi,
Can you try to add parameter action and value is delete_selected
RE: Need help goDeleteUser
-
Added by Kirill Ragimov almost 3 years ago
Hi,
Thank you very much, this is how it works!