Network Throttling
Set a predefined network profile
Applies a predefined network profile (e.g. 2G, 4G-fast) to the device session. Profiles are mapped to network conditions internally—the resolved conditions are returned in the response. Use DELETE /sessions/{sessionId}/network/condition to reset.
post/sessions/{sessionId}/network/profile
Request
- Base URLhttps://api.us-west-1.saucelabs.com/rdc/v2
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
sessionIdstring required
The id of the device session
Request body
Example request
{
"networkProfile": "4G-fast"
}Response
Network profile applied successfully
Example response
{
"downloadSpeed": 5000,
"uploadSpeed": 3000,
"latency": 200,
"loss": 2
}Changes
No recorded changes to this operation across all 1 revision of this API.