Skip to main content
PUT
/
v1
/
lines
/
upgrade
Upgrade Line
curl --request PUT \
  --url https://api.reselliptv.com/v1/lines/upgrade \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "new_connections": 2,
  "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
}

Authorizations

x-api-key
string
header
required

API Key

Body

application/json
new_connections
number
required

The number of simultaneous connections allowed for the line. Should be an integer between 1 and 6.

Required range: 1 <= x <= 6
Example:

2

id
string<uuid>

The ID of the line. Either the ID or the username is required to run this request.

username
string

The username of the line.

Response

Ok: Line edited

line
object
required
deducedCredits
number
required
Example:

25

newBalance
number
required
Example:

4975