Replace a line
/auth/line-users/{id}/write Change: creates or edits. Scopes
Change a line's details and settings. A reseller can't change the expiry, connections or trial flag (extend the line with a package instead), nor give bouquets its package doesn't have. Answers the line as GET does.
Path parameters
idstring (uuid)required
Body
usernamestringemailstring (email)can be nullfirst_namestringlast_namestringis_activebooleanmax_connectionsintegerexpire_datestring (date-time)can be nullallowed_ipsstringblocked_ipsstringallowed_user_agentstringnotesstringreseller_notesstringbouquetsstring (uuid)[]statusstringOnly
activecan watch.active- Can watchinactive- Not in service yetsuspended- On hold, e.g. a payment pendingbanned- Kept out for abuseexpired- Past its expiry date
is_trialbooleanis_restreamerbooleanforced_countriesstringlock_to_ispbooleanforced_serverstring (uuid)can be nulloutput_formatsstring
Response
200 OK
idstring (uuid)requiredread-onlyusernamestringrequiredemailstring (email)can be nullfirst_namestringlast_namestringphone_numberstringcan be nullphone_country_codestringcan be nullis_staffbooleanrequiredread-onlyDesignates whether the user can log into this admin site.
is_activebooleanrequiredread-onlygroupsstring[]requiredread-onlycreated_atstring (date-time)requiredread-onlyupdated_atstring (date-time)requiredread-onlyprofileobjectrequiredread-onlyuser_typestringType of user - staff for dashboard access, line for stream access only
staff- Staff Userline- Line Userservice- Service Account
user_type_displaystringrequiredread-onlycreated_atstring (date-time)requiredread-onlyupdated_atstring (date-time)requiredread-only
line_profileobjectrequiredread-onlycan be nullstatusstringOnly "Active" can watch. The rest differ in intent, not in effect: "Inactive" is not yet in service, "Suspended" is a reversible hold (payment pending) an automated process may lift, "Banned" is applied for abuse and must never be reversed automatically, "Expired" is driven by the expiry date. Pick the one you would defend to the customer — reporting and any future auto-reactivation read this field.
active- Activeinactive- Inactivesuspended- Suspendedbanned- Bannedexpired- Expired
status_displaystringrequiredread-onlymax_connectionsintegerMaximum simultaneous connections allowed
expire_datestring (date-time)can be nullAccount expiration date
allowed_user_agentstringAllowed user agents (one per line)
allowed_ipsstringAllowed IP addresses (one per line, supports CIDR)
blocked_ipsstringAddresses this line may not be used from (one per line: an address, a CIDR block or a range a-b). Wins over the allowed addresses.
notesstringOperator-only notes. Hidden from the reseller who owns this line.
reseller_notesstringThe owning reseller's own notes — order references, billing history. Visible to the owner and to anyone above them.
is_expiredbooleanrequiredread-onlycreated_atstring (date-time)requiredread-onlyupdated_atstring (date-time)requiredread-onlylast_activitystring (date-time)requiredread-onlycan be nullcreated_by_usernamestringrequiredread-onlybouquetsstring (uuid)[]requiredread-onlybouquets_displayobject[]requiredread-onlyidstring (uuid)requirednamestringrequired
is_trialbooleanLine was provisioned from a trial package.
is_restreamerbooleanAuthorized restream line (relays content downstream).
forced_countriesstringComma-separated ISO country codes the line may connect from. Empty = anywhere.
lock_to_ispbooleanBind the line to the ISP seen on its first connection.
locked_ispstringrequiredread-onlyISP captured on the first connection while lock_to_isp is on.
forced_serverstring (uuid)can be nullStream only from this server; auto routing is bypassed.
forced_server_namestringrequiredread-onlyoutput_formatsstringComma-separated delivery formats this line was sold. Not enforced: streams are delivered as MPEG-TS.
packageobjectrequiredread-onlycan be nullThe package the line is on now; null when none.
idstring (uuid)requirednamestringrequiredis_trialbooleanrequiredassigned_atstring (date-time)requiredexpires_atstring (date-time)requiredcan be null
active_connectionsintegerrequiredread-onlyDefault:
0is_onlinebooleanrequiredread-only
Errors
- 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 404 Nothing with this id, or nothing the account can see.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.