Edit Endpoints - EXAMPLE SEPARATE PAGES
POST /ext/line/{{line-uuid}}/enable
Set the status, of the selected line, to enabled
Response
{
"line_id": "1734da33-9723-4df6-90d1-38dc589aa0ec"
}
POST /ext/line/{{line-uuid}}/disable
Set the status, of the selected line, to disabled
Response
{
"line_id": "1734da33-9723-4df6-90d1-38dc589aa0ec"
}
POST /ext/line/{{line-uuid}}/terminate
Delete the selected line
Response
{
"line_id": "1734da33-9723-4df6-90d1-38dc589aa0ec"
}
POST /ext/line/{{line-uuid}}/update-advanced
Update line
needed permission: editLines (not typical for resellers)
The JSON body of the request is similar to the one for /ext/line/create-advanced
| Name | Requirements | Note |
|---|---|---|
| username | Optional, string, max 255 | |
| password | Optional, string, max 255 | |
| expire_at | Optional, string, ISO 8601 date format | To update the expiration of the line to Unlimited - send "expire_at": null |
| is_enabled | Optional, boolean | |
| is_restreamer | Optional, boolean | (Added in v2.0.7-5) |
| is_trial | Optional, boolean | (Added in v2.0.7-5) |
| package_id | Optional, integer | (Added in v2.0.7-5) If provided - will only link the edited line to the package, will not apply any package properties (expiration date, restrictions, locks, etc.) to the edited line |
| bouquets | Optional, array of integers | |
| reseller_notes | Optional, string | |
| mac_addr | Optional, string, valid MAC address format | If provided - will NOT change the record to type Device To be able to edit the MAC address, the edited record must have been created as type Device in the first place |
| max_connections | Optional, integer | |
| can_watch_adult | Optional, boolean | |
| owner_id | Optional, Integer, Valid user ID | (Added in v2.0.10) Works ONLY for SUPER-ADMIN users. Changes the line owner to the provided user ID. If not provided - the line keeps it's current owner |
| rid | Optional, Unique string | parameter is supplied to ensure action not performed multiple times |