Debian Codegraph @

testing/web-platform/tests/tools/wave/docs/rest-api/devices-api/create.md

raw
1 # `create` - [Devices API](../README.md#devices-api)
2
3 The `create` method of the devices API registers a new devices to remotely
4 start test sessions on. The device will automatically be unregistered if its
5 not registering for an [event](./register.md) for more than a minute.
6
7 ## HTTP Request
8
9 `POST /api/devices`
10
11 ## Response Payload
12
13 ```json
14 {
15 "token": "<String>"
16 }
17 ```
18
19 - **token** specifies the handle to reference the registered device by.
20
21 ## Example
22
23 **Request:**
24
25 `POST /api/devices`
26
27 **Response:**
28
29 ```json
30 {
31 "token": "e5f0b92e-8309-11ea-a1b1-0021ccd76152"
32 }
33 ```