cURL
curl --request PUT \ --url https://api.reselliptv.com/v1/lines/extend \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "duration": "12", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "username": "<string>" } '
{ "line": { "id": "<string>", "hostname": "<string>", "username": "<string>", "password": "<string>", "label": "<string>", "enabled": true, "connections": 123, "macaddress": "<string>", "parental_code": "<string>", "is_trial": true, "exp_date": "Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)", "start_date": "Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)", "created_at": "Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)" }, "deducedCredits": 25, "newBalance": 4975 }
Extend Line expiration date.
API Key
The duration of the line in months. Valid values are '1', '3', '6', or '12'.
1
3
6
12
"12"
The ID of the line. Either the ID or the username is required to run this request.
The username of the line.
Ok: Line extended
Show child attributes
Date of expiration of the line.
"Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)"
Starting date of the line (Creation date or Extension date if the line has been extended).
Initial creation date of the line.
25
4975