ProRoster - Edit a plan

API Url

Use it for changing a plan.

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

Permissions: user

Query parameters

FieldTypeDescription
forceBoolean

True = Will ignore the warning. False = In case you haven't put yourself in the user restrictions or if you are not an admin, the routine ends with an error. If there aren't any user restrictions, you will not get an error.

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    plansObject[]
      approvalGroupsoptionalObject[]

Object array of approval group details.

        idString

Id of the approval group.

      departmentsoptionalObject[]

Object array of department details.

        idString

Id of the department.

      descriptionString

Description of the plan.

      endDateoptionalDate

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

      groupsoptionalObject[]

Object array of group details.

        idString

Id of the group.

      idNumber

The plan unique identifier.

      neverExpiresBoolean

Boolean if the plan is endless or not.

      planIdoptionalString

Plan ID (needs to be unique also).

      startDateDate

Start date of the plan.

      usersoptionalObject[]

Object array of user rights details.

        accesModeNumber

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

        idString

Id of the user.

        isAdminBoolean

True = the user is Plan administrator.

      versionNumber

Version number of the plan.

Request example:

{
"request": {
"data": {
"plans": [
{
"id": 11234555,
"planId": "UUT",
"description": "SAP-HR-Department 15 Pan",
"startDate": "2015-10-01",
"endDate": "2018-07-27",
"neverExpires": true,
"departments": [
{
"id": "BAYPROJ"
}
],
"groups": [
{
"id": "2"
}
],
"approvalGroups": [
{
"id": "01"
}
],
"users": [
{
"id": "AAM",
"isAdmin": true,
"accessMode": 1
}
]
}
},
}
}

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.