ProRoster - Get a plan

API Url

Use it for loading a plan by id.

GET
http://localhost:16010/ProMarkREST/rest/ProRoster/plans/{id}

Permissions: user

Path parameters

FieldTypeDescription
idNumber

The plan unique identifier.

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 = Start 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

Checks if the user has read-only rights or read-write rights. 0 = Read-only, 1 = Read-write.

        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.