You need to enable JavaScript to run this app.
导航
撤销数据删除Job
最近更新时间:2025.06.13 14:01:53首次发布时间:2025.06.13 14:01:53
我的收藏
有用
有用
无用
无用

注意事项

只允许撤销状态为PENDING的Job。

撤销用户数据删除job

Path/openapi/v1/{app_id}/data-deletions/{job_id}
Method: DELETE
请求参数

  • 请求参数

    字段

    类型

    必填

    说明

    app_id

    int64

    true

    应用id

    job_id

    string

    true

    数据删除Job唯一id

    status

    string

    true

    Job状态

    uuids

    array

    true

    user_unique_id列表

    ssids

    array

    true

    ssid列表

    creator

    string

    true

    创建此Job的用户id

    updater

    string

    true

    最后一次更新此Job的用户id

    created_at

    string

    true

    Job创建时间,例如 2021-02-25T20:30:32.559908+08:00

    updated_at

    string

    true

    Job信息被更新的时间

    started_at

    string

    false

    Job开始执行的时间,如果还未开始则无此字段

  • 请求示例:

    {
        "app_id": 1,
        "job_id": "6945069711990194696",
        "status": "STARTED",
        "uuids": ["user-1@test.com", "user-2@test.com", "user-3@test.com"],
        "ssids": ["6f67ea5e-69ee-48bc-a75a-5a88f25a3368", "990c4961-3c84-4d19-87d3-7b84886feeb3", "c7ec2328-f60a-4181-86e7-581d48aa62c9"],
        "creator": "10000256",
        "updater": "10000256",
        "created_at": "2021-02-25T20:30:32.559908+08:00",
        "updated_at": "2021-02-25T20:39:08.314194+08:00",
        "started_at": "2021-02-26T20:36:26.313622+08:00"
    }
    

Response

{
    "code": 200,
    "message": "ok"
}

调用示例
def revoke_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/6946025052202598943", method="delete")
    print(resp.json())