Create a line
POST
/auth/line-users/write Change: creates or edits. Scopes
Make a line. A package sets its length, connections, restrictions and bouquets; what you send overrides it, except that a reseller must give a package, pays its price (charge), and gets the length, trial flag and connections it sets.
Headers
Idempotency-KeystringA fresh value (up to 100 characters) per action you may retry. Sent again with the same request, it answers what the first one did without doing it twice; with another request, 409. Kept 24 hours.
Body
usernamestringrequiredpasswordstringrequiredpassword_confirmstringrequiredemailstring (email)can be nullfirst_namestringlast_namestringis_activebooleanmax_connectionsintegerexpire_datestring (date-time)can be nullallowed_ipsstringblocked_ipsstringallowed_user_agentstringnotesstringreseller_notesstringbouquetsstring (uuid)[]packagestring (uuid)can be nullis_trialbooleanis_restreamerbooleanforced_countriesstringlock_to_ispbooleanforced_serverstring (uuid)can be nulloutput_formatsstring
Response
201 OK
idstring (uuid)requiredusernamestringrequiredemailstring (email)requiredfirst_namestringrequiredlast_namestringrequiredis_activebooleanrequiredexpire_datestring (date-time)requiredcan be nullNull: never expires.
max_connectionsintegerrequiredis_trialbooleanrequiredforced_serverstring (uuid)requiredcan be nullchargeobjectrequiredcan be nullWhat you paid; null when nothing was taken.
amountstring (decimal)requiredCredits taken from your balance.
balance_afterstring (decimal)requiredYour balance now.
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.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.