ProRoster - Update base demand

API Url

Use it for updating a base demand .

PUT
http://localhost:16010/ProMarkREST/rest/ProRoster/base-demands

Permissions: user

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    baseDemandsObject[]

List of Base Demands.

      approvalGroupoptionalObject[]
        idoptionalString

Id of the approvalGroup.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

      assignmentMethodoptionalObject[]
        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

        MethodoptionalString

Assignment methode Automatic = "A" or Manual "M".

      attendanceTimeoptionalObject[]

Attendance time interval.

        endTimeoptionalNumber

End time of the interval in seconds.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

        startTimeoptionalNumber

Start time of the interval in seconds.

      backColoroptionalString

BackGround color in HEX without #.

      categoryoptionalObject[]
        idString

Id of the category.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

      dayProfileoptionalObject[]
        idoptionalString
        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

      daysBeforeoptionalObject[]
        daysoptionalNumber

Accept days before shift takes place.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

      departmentoptionalObject[]
        idoptionalString

Id of the department.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

        isStrictBoolean

True = you cannot assign the demand unless the employee has the same department.

      descriptionoptionalString

Description of the base demand.

      favoriteoptionalBoolean

True if base demand is favorite.

      foreColoroptionalString

ForeGround color in HEX without #.

      groupoptionalObject[]
        idoptionalString

Id of the group.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

        isStrictBoolean

True = you cannot assign the demand unless the employee has the same group.

      ignoreDayProfileoptionalObject[]
        isLockedBoolean

Is the attribute locked.

        valueBoolean
      inactiveoptionalBoolean

True if the base demand is inactive.

      maximumBidsoptionalObject[]
        amountNumber

Number of employees to bid in.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

      nameString

The name of the base demand .

      normalTimeoptionalObject[]

Normal time interval for variable day profiles.

        endTimeoptionalNumber

End time of the interval in seconds.

        startTimeoptionalNumber

Start time of the interval in seconds.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

      objectIdNumber

The Id of the base demand.

      qualificationSetupoptionalObject[]
        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

        qualificationsoptionalObject[]
          idNumber

Id of the employee qualification.

          orderNumber
          primaryBoolean
      requiredEmployeesObject[]
        amountNumber

Number of employees

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

      userProfilesString[50]

Restriction on user profiles for the demand

      usersString[50]

Restriction on users for the demand

      visibilityString

If the plan is global or private.

Allowed values:"P""G"

Request example:

HTTP/1.1 200 OK
{
"request": {
"data": {
"baseDemand": [
{
"objectId": 2153900338,
"name": "Waiter, razvan132",
"inactive": false,
"favorite": true,
"visibility": "P",
"description": "blah, blah, blah, blah, blah",
"foreColor": "123400",
"backColor": "567800",
"version": 1,
"userProfiles":["PROF","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],
"users":["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],
"attendanceTime": [
{
"startTime": 0,
"endTime": 3600,
"isRequired": false,
"isLocked": true
}
],
"normalTime": [
{
"startTime": 0,
"endTime": 3600,
"isRequired": false,
"isLocked": true
}
],
"dayProfile": [
{
"id": "DAY",
"isRequired": false,
"isLocked": true
}
],
"requiredEmployees": [
{
"amount": 3,
"isRequired": false,
"isLocked": true
}
],
"department": [
{
"id": "0000007215",
"isRequired": false,
"isLocked": true,
"isStrict": true
}
],
"assignmentMethod": [
{
"method": "A",
"isRequired": false,
"isLocked": true
}
],
"group": [
{
"id": "1",
"isRequired": false,
"isLocked": true,
"isStrict": false
}
],
"approvalGroup": [
{
"id": "01",
"isRequired": true,
"isLocked": true
}
],
"maximumBids": [
{
"amount": 9,
"isRequired": false,
"isLocked": true
}
],
"category": [
{
"id": "02",
"isRequired": false,
"isLocked": true
}
],
"ignoreDayProfile": [
{
"value": true,
"isLocked": true
}
],
"daysBefore": [
{
"days": 2,
"isRequired": false,
"isLocked": true
}
],
"qualifications": [
{
"id": 2153900339,
"empQualId": "3",
"primary": true,
"order": 1,
"isRequired": true,
"isLocked": true
}
]
}
]
}
}
}

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.