Path:/openapi/v1/{app_id}/data-deletions
Method: POST
Request parameters:
Request parameters
Field | Type | Required | Explain |
|---|---|---|---|
uuids | array | false | List of user_unique_id to remove |
ssids | array | false | The list of ssids to delete must be selected with uuids. If both pass, it will convert uuid to ssid and merge. |
Example of request:
{ "uuids": ["user-1@test.com", "user-2@test.com"], "ssids": ["6f67ea5e-69ee-48bc-a75a-******", "990c4961-3c84-4d19-87d3-7******"] }
tip
The above is an example of a request to delete four users. At the same time, 2 uuis and 2 ssids are uploaded. When the user data is finally deleted, the 2 uuids will be converted to ssid respectively, and the 2 ssids that have been uploaded will be merged and deduplicated. The final number of users to delete is 4.
Response
{ "code": 200, "message": "ok", "data": #/schemas/DeletionJob }
def create_deletion_job(): ak = "{YOUR_AK}" sk = "{YOUR_SK}" client = RangersClient(ak, sk, url="https://datarangers.com") resp = client.data_finder("/openapi/v1/181902/data-deletions", method="post", body={"ssids": ["5be111b2-83c9-44ff-8942-******","0b419397-08fb-4570-9c66-******5"], "uuids": ["139124******","986170174920******"]}) print(resp.json())