ProRoster - Get plans

API Url

Use it for loading the list of all plans available to the current user.

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

Permissions: user

Query parameters

FieldTypeDescription
includeExpiredoptionalBoolean

true = Include also expired plans (default false).

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    plansObject[]

List of plans.

      approvalGroupsoptionalObject[]

List of approval groups.

        descriptionString

Description of the approval group.

        idString

The Id of the approval group.

      canEditBoolean
      departmentsoptionalObject[]

List of departments.

        descriptionString

Description of the department.

        idString

The Id of the department.

      descriptionString

Description of the plan.

      endDateoptionalDate

End date of the plan. Optional if plan never expires.

      groupsoptionalObject[]

List of groups.

        descriptionString

Description of the group.

        idString

The Id of the group.

      idNumber

The Id of the plan.

      isReadOnlyBoolean
      neverExpiresBoolean

true = The end date never expires. false = End date must be specified.

      planIdoptionalString

Optional unique Id to identifiy visually a PlanSelection.

      publishedUntilDate
      startDateDate

Start date of the plan.

      stateNumber

Plan state: 1:Draft, 2:Published-Demands, 3:Published-Employees, 3:Published-Complete.

      usersoptionalObject[]

List of users.

        accesModeNumber

0 = user has read-only rights, 1 = user has read-write rights.

        idString

The Id of the user.

        isAdminBoolean

True = the user is Plan administrator.

        nameString

The username of the user.

      versionNumber

Version number of the plan.

  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":{
"plans":[
{
"id":2149787202,
"planId":"",
"description":"SAP-HR-Department 15 Pan",
"startDate":"2016-08-04",
"endDate":"2062-01-18",
"version":7,
"state":2,
"publishedUntil":null,
"neverExpires":true,
"canEdit":false,
"isReadOnly":true,
"departments":[
{
"id":"0000007215",
"description":"SAP-HR-department 15"
}
],
"groups":[
{
"id":"BH",
"description":"Bo Haslund"
}
],
"approvalGroups":[
{
"id":"01",
"description":"Kem Default"
}
],
"users":[
{
"id":"USR",
"name":"User",
"isAdmin":true,
"accessMode":1
}
]
}
]
},
"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.