Update a guestuser via username
Note all the devices connected to this account will be disconnected
Path parameters
-
Guestuser Username
-
Site database ID
Body Required
-
speed_ul integer
Upload speed , 0 for unlimited ( only if speed_limit is True)
-
password
-
bytes_t integer
Data Limit ( only if data_limit is True)
-
Allowed duration actual value
-
speed_dl integer
Download speed , 0 for unlimited ( only if speed_limit is True)
-
username
-
Type for time duration (1,'Minutes'),(2,'Hours'),(3,'Days')
-
unlimited_speed boolean
Set speed to be unlimited for guestuser
-
notes string
Internal comments
-
unlimited_data boolean
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)
-
Max devices allowed in this package
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
}