Lines

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-Keystring

    A 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

  • usernamestringrequired
  • passwordstringrequired
  • password_confirmstringrequired
  • emailstring (email)can be null
  • first_namestring
  • last_namestring
  • is_activeboolean
  • max_connectionsinteger
  • expire_datestring (date-time)can be null
  • allowed_ipsstring
  • blocked_ipsstring
  • allowed_user_agentstring
  • notesstring
  • reseller_notesstring
  • bouquetsstring (uuid)[]
  • packagestring (uuid)can be null
  • is_trialboolean
  • is_restreamerboolean
  • forced_countriesstring
  • lock_to_ispboolean
  • forced_serverstring (uuid)can be null
  • output_formatsstring

Response

201 OK

  • idstring (uuid)required
  • usernamestringrequired
  • emailstring (email)required
  • first_namestringrequired
  • last_namestringrequired
  • is_activebooleanrequired
  • expire_datestring (date-time)requiredcan be null

    Null: never expires.

  • max_connectionsintegerrequired
  • is_trialbooleanrequired
  • forced_serverstring (uuid)requiredcan be null
  • chargeobjectrequiredcan be null

    What you paid; null when nothing was taken.

    • amountstring (decimal)required

      Credits taken from your balance.

    • balance_afterstring (decimal)required

      Your 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.

What each error means