Update a guestuser via username
Note all the devices connected to this account will be disconnected
Body
Required
-
unlimited_speed
boolean Set speed to be unlimited for guestuser
-
password
string password
-
num_devices
integer Required Max devices allowed in this package
-
unlimited_data
boolean Set data to be unlimited for guestuser
-
duration_val
integer Required Allowed duration actual value
-
duration_type
integer Required Type for time duration (1,'Minutes'),(2,'Hours'),(3,'Days')
-
speed_dl
integer Download speed , 0 for unlimited ( only if speed_limit is True)
-
bytes_t
integer Data Limit ( only if data_limit is True)
-
bytes_type
integer Data Limit type (1,'Total'),(2,'Daily'),(3,'Weekly'),(4,'Monthly') ( only if data_limit is True)
-
username
string Required username
-
notes
string Internal comments
-
speed_ul
integer Upload speed , 0 for unlimited ( only if speed_limit is True)
PUT
/ext/{siteid}/api/v1/guestuser/u/{username}
curl \
--request PUT 'https://api.spotipo.com/ext/{siteid}/api/v1/guestuser/u/{username}' \
--header "Authentication-Token: $API_KEY" \
--header "Content-Type: application/json" \
--header "X-Fields: string" \
--data '{"unlimited_speed":true,"password":"string","num_devices":42,"unlimited_data":true,"duration_val":42,"duration_type":42,"speed_dl":42,"bytes_t":42,"bytes_type":42,"username":"string","notes":"string","speed_ul":42}'
Request examples
# Headers
X-Fields: string
# Payload
{
"unlimited_speed": true,
"password": "string",
"num_devices": 42,
"unlimited_data": true,
"duration_val": 42,
"duration_type": 42,
"speed_dl": 42,
"bytes_t": 42,
"bytes_type": 42,
"username": "string",
"notes": "string",
"speed_ul": 42
}
Response examples (200)
{
"unlimited_speed": true,
"id": 42,
"status": {},
"num_devices": 42,
"unlimited_data": true,
"name": {},
"duration_val": 42,
"duration_type": 42,
"speed_dl": 42,
"auths": [
{
"id": 42,
"type": "string",
"devicedata": {},
"mac": {},
"last_seen_at": {},
"online": {},
"time_used": "string",
"data_used": "string",
"hostname": {}
}
],
"bytes_t": 42,
"bytes_type": 42,
"email": "string",
"username": "string",
"notes": "string",
"speed_ul": 42
}