Skip to main content
PUT
/
v1
/
lines
Update Line
curl --request PUT \
  --url https://api.reselliptv.com/v1/lines \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "username": "<string>",
  "new_username": "<string>",
  "password": "<string>",
  "label": "My TV Line",
  "new_macaddress": "67:21:4C:24:76:97",
  "parental_code": "0000",
  "bouquets": [
    1,
    2,
    3
  ],
  "enabled": true,
  "macaddress": "<string>"
}
'
{
  "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)"
}

Authorizations

x-api-key
string
header
required

API Key

Body

application/json
id
string<uuid>

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

username
string

The username of the line.

new_username
string

The new username of the line. Must be RFC 3986 compliant. If the value is true, a random username will be generated.

Required string length: 12 - 30
password
string

The new password of the line. Must be RFC 3986 compliant. If the value is true, a random password will be generated.

Required string length: 14 - 30
label
string

The new label of the line.

Maximum string length: 30
Example:

"My TV Line"

new_macaddress

The new MAC address to assign to the line. To remove the assigned macaddress, set false

Example:

"67:21:4C:24:76:97"

parental_code
string

The new parental code of the MAG access. Should be 4 digits. Set false to remove parental code

Required string length: 4
Example:

"0000"

bouquets

The new IDs of the bouquets to link on creation of the line. To remove bouquets, set empty array or false

Example:
[1, 2, 3]
enabled
boolean

Specifies whether the line should be active or not.

macaddress
string

MAC address of the line.

Response

Ok: Line updated

id
string
required
hostname
string | null
required
username
string
required
password
string
required
label
string
required
enabled
boolean
required
connections
number
required
macaddress
string | null
required
parental_code
string | null
required
is_trial
boolean
required
exp_date
string | null
required

Date of expiration of the line.

Example:

"Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)"

start_date
string | null
required

Starting date of the line (Creation date or Extension date if the line has been extended).

Example:

"Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)"

created_at
string | null
required

Initial creation date of the line.

Example:

"Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)"