Create a new recording session. Either deviceId or recordingIds must be provided. If recordingIds are provided without a deviceId, the device is inferred from the recordings, which must all belong to the same device. The session inherits its org and project from the device. If the request includes a projectId, it must match the device's project; otherwise the API returns 400.
Security
ApiKey(Required scopes: sessions.create)
The ID of the device to associate with the session. If omitted, inferred from recordingIds.
IDs of recordings to associate with the new session. All recordings must belong to the same device and project.
- Productionhttps://api.foxglove.dev/v1/sessions
{ "deviceId": "string", "key": "string", "recordingIds": [ "string" ], "properties": { "property1": "string", "property2": "string" } }
The newly created session
A key-value map of the custom properties associated with this session.
Response
{ "id": "string", "projectId": "string", "device": { "id": "string", "name": "string" }, "key": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "properties": { "property1": "string", "property2": "string" }, "recordings": [ { … } ] }