Skip to main content

Get a List of Sessions

Gets a list of sessions for HMP.

Authorizations: Sessions - VIEW

Requests

CODE
GET /apis/sessions

Tip

You can query sessions based on a title and description (or HotMark title and description) by adding the “q” query parameter to the collection URL. For more information, see Queries.

Response

Success

CODE
{ "data": [
  {
   "title": "ABC",
   "description": "",
   "ctime": 1393533035,
   "mtime": 1398875839,
   "duration": 0,
   "active": false,
   "syncrecord": true,
   "id": "2f8dce6d-fd8b-459e-890f-97965c88df40",
   "movieTrackCount": 1,
   "sources": [
     "f4327f7b-3917-4533-b844-8818741cb0bd"
     "recording": false,
  ]},
  { 
    "title": "Creator",
    "description": "",
    "ctime": 1395420810,
    "mtime": 1398190876,
    "duration": 0,
    "active": false,
    "syncrecord": false,
    "id": "f443465b-dee0-484e-b4c3-60fd8209d7b6",
    "movieTrackCount": 3,
    "sources": [
      "8480b370-c6e7-4224-912c-75d9c55bca6c",
      "99c43dce-3b27-4cbf-8a37-6db96e71eb25",
      "323e1db5-5bb4-4988-85fc-b07605b365c8"
    ],
    "recording": false
   }],
   "paging": {
     "results": 2,
     "pageSize": 15
   }
}

Error

Code

Payload

 Description

400

{"code":"010002", "name":"InvalidFilter",
"message":<Error message>, "httpStatusCode": 400}

The provided filter does not exist on the server.

404

{"code":"040012", "name":"NoResults",
"message":"No results", "httpStatusCode":404}

No results returned from the server.

500

{"code":"070000", "name":"InternalServer",
"message":"Internal Server Error",
"httpStatusCode":500}

Getting a list of sessions failed. Please see calypso.log for details.

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.