Update a guestuser via username

PUT /ext/{siteid}/api/v1/guestuser/u/{username}

Note all the devices connected to this account will be disconnected

Path parameters

Body Required

  • speed_ul integer

    Upload speed , 0 for unlimited ( only if speed_limit is True)

  • password string Required

    password

  • bytes_t integer

    Data Limit ( only if data_limit is True)

  • duration_val integer Required

    Allowed duration actual value

  • speed_dl integer

    Download speed , 0 for unlimited ( only if speed_limit is True)

  • username string Required

    username

  • duration_type integer Required

    Type for time duration (1,'Minutes'),(2,'Hours'),(3,'Days')

  • Set speed to be unlimited for guestuser

  • notes string

    Internal comments

  • Set data to be unlimited for guestuser

  • bytes_type integer

    Data Limit type (1,'Total'),(2,'Daily'),(3,'Weekly'),(4,'Monthly') ( only if data_limit is True)

  • num_devices integer Required

    Max devices allowed in this package

Responses

PUT /ext/{siteid}/api/v1/guestuser/u/{username}
curl \
 -X PUT https://api.spotipo.com/ext/{siteid}/api/v1/guestuser/u/{username} \
 -H "Authentication-Token: $API_KEY" \
 -d '{"speed_ul":42,"password":"string","bytes_t":42,"duration_val":42,"speed_dl":42,"username":"string","duration_type":42,"unlimited_speed":true,"notes":"string","unlimited_data":true,"bytes_type":42,"num_devices":42}'
Request example
{
  "speed_ul": 42,
  "password": "string",
  "bytes_t": 42,
  "duration_val": 42,
  "speed_dl": 42,
  "username": "string",
  "duration_type": 42,
  "unlimited_speed": true,
  "notes": "string",
  "unlimited_data": true,
  "bytes_type": 42,
  "num_devices": 42
}
Response examples (200)
{
  "speed_ul": 42,
  "password": "string",
  "status": {},
  "bytes_t": 42,
  "duration_val": 42,
  "email": "string",
  "speed_dl": 42,
  "name": {},
  "username": "string",
  "id": 42,
  "duration_type": 42,
  "unlimited_speed": true,
  "auths": [
    {
      "type": "string",
      "last_seen_at": {},
      "hostname": {},
      "data_used": "string",
      "id": 42,
      "online": {},
      "mac": {},
      "devicedata": {},
      "time_used": "string"
    }
  ],
  "notes": "string",
  "unlimited_data": true,
  "bytes_type": 42,
  "num_devices": 42
}