UI Action
Rotate screen
Rotates the screen orientation. Note that even after rotating the screen, applications or system layouts may not automatically adapt to the gravity sensor changes, so visual changes may not always occur.
post/boxes/{boxId}/actions/screen-rotation
Path parameters
boxIdstring required
Example:c9bdc193-b54b-4ddb-a035-5ac0c598d32d
Box ID
Request body
Example request
{
"orientation": "landscapeLeft",
"options": {
"screenshot": {
"outputFormat": "base64",
"presignedExpiresIn": "30m",
"delay": "500ms",
"phases": [
"before",
"after"
]
}
},
"outputFormat": "base64",
"presignedExpiresIn": "30m",
"screenshotDelay": "500ms"
}Response
Example response
{
"message": "Action executed successfully",
"actionId": "c9bdc193-b54b-4ddb-a035-5ac0c598d32d",
"screenshot": {
"trace": {
"uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."
},
"before": {
"uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA...",
"presignedUrl": "https://example.com/xxxxx/xxxxx/xxxxx"
},
"after": {
"uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA...",
"presignedUrl": "https://example.com/xxxxx/xxxxx/xxxxx"
}
}
}