패키지 업데이트
하위 패키지를 비활성화할 때 남은 트래픽은 하위 패키지 내에 유지됩니다. 하위 패키지의 유효 기간은 현재 활성 요금제의 유효 기간을 초과하지 않아야 합니다. 하위 패키지에 할당할 총 트래픽 양을 바이트 단위로 지정합니다.
엔드포인트:
POSThttps://proxy-seller.com/personal/api/v1/{YourApiKey}/residentsubuser/update
경로 매개변수:
이름 | 가치 | 설명 |
|---|---|---|
권한 부여 |
| 개인 API 키 |
요청 본문:
이름 | 유형 | 설명 |
|---|---|---|
is_link_date | 부울 | "'true'인 경우 업데이트 날짜가 기본 패키지에 연결됩니다. |
회전 | 번호 | 회전 유형을 지정합니다: '-1' = 회전 없음(고정), '0' = 요청당 회전, '1 ~ '3600' = 시간(초)별로 회전. |
traffic_limit | 문자열 | 하위 패키지에 할당된 바이트 수를 지정합니다. |
expired_at | 문자열 | 하위 패키지의 만료일입니다. |
is_active | 부울 | 하위 패키지의 상태를 활성 상태인 경우 'true', 비활성 상태인 경우 'false'로 설정합니다. |
패키지_키 | 문자열 | 활성 패키지의 키입니다. |
예시:
https://proxy-seller.com/personal/api/v1/fj4948ffhg58gh843gh/residentsubuser/update응답:
{
"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": "IP not allowed",
"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
}
]
}