Proxy-seller

更改授权

Updated:

此端点允许您修改访问代理服务器的身份验证数据。

最终目标:

POSThttps://proxy-seller.com/personal/api/v2/{YourApiKey}/auth/change

示例

https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/auth/change
{
    "id":"6abe728f351e1e9a962199b8",
    "active":false,
    "login":"qwerty",
    "password":"123123"
}
https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/auth/change
{
    "id":"6abe74c7351e1e9a96219ad0",
    "active":false,
    "ip":"31.76.117.26"
}

路径参数:

名称

价值

描述

授权

<Your_API_Key>

您的个人 API 密钥(如何获取)

请求正文

名称

类型

描述

id

字符串

id:授权ID(必填)

active

布尔值

启用或禁用授权

登录

字符串

设置新用户名

密码

字符串

设置新密码

ip

字符串

设置新IP

回复

{
    "status": "success",
    "data": {
        "id": "6abe728f351e1e9a962199b8",
        "active": false,
        "login": "qwerty",
        "password": "123123",
        "orderNumber": "NS_1789631886643-7D_e_ra7hhT4ZnG"
    },
    "errors": []
}
{
    "status": "success",
    "data": {
        "id": "6abe74c7351e1e9a96219ad0",
        "active": false,
        "ip": "31.76.117.26",
        "orderNumber": "NS_1789631886643-7D_e_ra7hhT4ZnG"
    },
    "errors": []
}

授权未找到

{
    "status": "error",
    "data": null,
    "errors": [
        {
            "message": "Set exists [id]",
            "code": 0,
            "customData": null
        }
    ]
}

On this page