ProRoster - Get all snapshots

API Url

Use it for loading all snapshots

GET
http://localhost:16010/ProMarkREST/rest/ProRoster/snapshots

Permissions: user

Path parameters

FieldTypeDescription
idNumber

The snapshot's unique identifier.

Query parameters

FieldTypeDescription
showPastBoolean

True = see also snapshots from past.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    snapshotsObject[]

List of snapshots.

      fromDate

Starting date of the snapshot.

      isPrivateBoolean

If true then the snapshots is private to the user.

      nameString

The name of the snapshots.

      planIdNumber

The id of the plan.

      toDate

Ending date of the snapshot.

      versionNumber

The snapshot version.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"snapshots": [
{
"planId": 2164573937,
"version": 33,
"from": "2020-02-28",
"to": "2020-03-05",
"name": "test1",
"user": "TEST",
"isPrivate": true
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.