Packages

Record a package in a line's history

POST/management/packages/{id}/assign/

manage Delete and money: deletes, credits, servers or panel settings. Scopes

Adds the package to the line's package history, without changing the line or charging anyone. Panel operators only. To renew a line, extend it with a package instead.

Path parameters

  • idstring (uuid)required

    A UUID string identifying this Package.

Body

  • line_user_idstring (uuid)required

Response

201 OK

  • idstring (uuid)requiredread-only
  • line_userstring (uuid)required

    Line user who received this package

  • line_user_usernamestringrequiredread-only
  • packagestring (uuid)required
  • package_namestringrequiredread-only
  • assigned_bystring (uuid)requiredread-onlycan be null

    Staff user who assigned this package

  • assigned_by_usernamestringrequiredread-only
  • assigned_atstring (date-time)requiredread-only
  • expires_atstring (date-time)required

    When this package expires for the user

  • is_activeboolean
  • is_expired_statusbooleanrequiredread-only

Errors

  • 400
  • 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.

What each error means