delete User Bulk

DELETE {{baseUrl}}/api/user/bulk?userIds=<string>&dryRun=<string>&hardDelete=<string>

Deactivates the users with the given ids. OR Deletes the users with the given ids, or users matching the provided JSON query or queryString. The order of preference is ids, query and then queryString, it is recommended to only provide one of the three for the request. This method can be used to deactivate or permanently delete (hard-delete) users based upon the hardDelete boolean in the request body. Using the dryRun parameter you may also request the result of the action without actually deleting or deactivating any users.

Request Params

KeyDatatypeRequiredDescription
userIdsstringThe ids of the users to deactivate.
dryRunstring
hardDeletestring

Request Body

{"dryRun"=>"<boolean>", "hardDelete"=>"<boolean>", "limit"=>"<integer>", "query"=>"<string>", "queryString"=>"<string>", "userIds"=>["<uuid>", "<uuid>"], "eventInfo"=>{"deviceDescription"=>"<string>", "deviceName"=>"<string>", "deviceType"=>"<string>", "ipAddress"=>"<string>", "location"=>{"city"=>"<string>", "country"=>"<string>", "latitude"=>"<double>", "longitude"=>"<double>", "region"=>"<string>", "zipcode"=>"<string>", "displayString"=>"<string>"}, "os"=>"<string>", "userAgent"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;dryRun&quot;:&quot;\u003cboolean\u003e&quot;,&quot;hardDelete&quot;:&quot;\u003cboolean\u003e&quot;,&quot;total&quot;:&quot;\u003cinteger\u003e&quot;,&quot;userIds&quot;:[&quot;\u003cuuid\u003e&quot;,&quot;\u003cuuid\u003e&quot;]}