Update package
When deactivating a subpackage, any remaining traffic will remain within the subpackage. The validity period of the subpackage must not exceed that of the current active tariff. Specify the total amount of traffic in bytes to be allocated for the subpackage.
Endpoint:
Path parameters:
Name | Value | Description |
|---|---|---|
Authorization |
| Your personal API key |
Request body:
Name | Type | Description |
|---|---|---|
is_link_date | Boolean | "If 'true,' the update date will be linked to the main package. |
rotation | Number | Specifies the rotation type: '-1' = No rotation (Sticky), '0' = Rotation per request, '1' to '3600' = Rotation by time in seconds. |
traffic_limit | String | Specifies the amount of bytes allocated for the subpackage. |
expired_at | String | Expiration date of the subpackage. |
is_active | Boolean | Set the status of the subpackage: 'true' for active, 'false' for inactive. |
package_key | String | Key of your active package. |
Example:
https://proxy-seller.com/personal/api/v1/fj4948ffhg58gh843gh/residentsubuser/updateResponse:
{
"status": "success",
"data": {
"rotation": 60,
"traffic_limit": "7516192768",
"expired_at": "d.m.Y",
"is_link_date": true,
"is_active": true,
"package_key": "1234567890abcdefedcb",
"traffic_usage": "10",
"traffic_left": "10",
"traffic_usage_sub": "2",
"traffic_limit_sub": "5",
"traffic_left_sub": "3"
},
"errors": []
}{
"status": "error",
"data": null,
"errors": [
{
"message": "Error api key",
"code": 503,
"customData": null
},
{
"message": "IP not allowed",
"code": 503,
"customData": null
},
{
"message": "Request limit reached",
"code": 503,
"customData": null
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "Set [ traffic_limit ] less than [ traffic_left - 1 ] in main package: 27380416559",
"code": 0,
"customData": null
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "Sub tarif not found",
"code": 0,
"customData": null
}
]
}