Update a guestuser via username

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

Note all the devices connected to this account will be disconnected

Headers

Body Required

  • duration_val integer Required

    Allowed duration actual value

  • password string Required

    password

  • bytes_type integer

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

  • speed_ul integer

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

  • Set speed to be unlimited for guestuser

  • speed_dl integer

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

  • notes string

    Internal comments

  • num_devices integer Required

    Max devices allowed in this package

  • Set data to be unlimited for guestuser

  • duration_type integer Required

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

  • bytes_t integer

    Data Limit ( only if data_limit is True)

  • username string Required

    username

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" \
 -H "X-Fields: string" \
 -d '{"duration_val":42,"password":"string","bytes_type":42,"speed_ul":42,"unlimited_speed":true,"speed_dl":42,"notes":"string","num_devices":42,"unlimited_data":true,"duration_type":42,"bytes_t":42,"username":"string"}'
Request example
# Headers
X-Fields: string

# Payload
{
  "duration_val": 42,
  "password": "string",
  "bytes_type": 42,
  "speed_ul": 42,
  "unlimited_speed": true,
  "speed_dl": 42,
  "notes": "string",
  "num_devices": 42,
  "unlimited_data": true,
  "duration_type": 42,
  "bytes_t": 42,
  "username": "string"
}
Response example (200)
{
  "name": {},
  "duration_val": 42,
  "email": "string",
  "password": "string",
  "bytes_type": 42,
  "speed_ul": 42,
  "unlimited_speed": true,
  "auths": [
    {
      "id": 42,
      "type": "string",
      "data_used": "string",
      "hostname": {},
      "devicedata": {},
      "online": {},
      "last_seen_at": {},
      "time_used": "string",
      "mac": {}
    }
  ],
  "speed_dl": 42,
  "id": 42,
  "notes": "string",
  "num_devices": 42,
  "unlimited_data": true,
  "duration_type": 42,
  "bytes_t": 42,
  "username": "string",
  "status": {}
}