ProRoster - Get base demands

API Url

Use it for loading the list of all base demands .

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

Permissions: user

Query parameters

FieldTypeDescription
fieldsoptionalString

List of fields with comma delimiter to include in the response. Example to get only 2 attributes fields=dayProfile,normalTime.

showInactiveoptionalBoolean

Show inactive base demands

visibilityoptionalString

"P" = show only private , "G" = show only Global , "" = show all.

Parameter

FieldTypeDescription
      ignoreDayProfileoptionalObject[]
        isLockedBoolean

Is the attribute locked.

        valueBoolean

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    baseDemandsObject[]

List of Base Demands.

      acceptBeforeoptionalObject[]
        daysoptionalNumber

Accept days before shift takes place.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

      approvalGroupoptionalObject[]
        descriptionoptionalString

Description of the approvalGroup.

        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.

      backColorString

BackGround color in HEX without #.

      categoryoptionalObject[]
        descriptionoptionalString

Description of the category.

        idoptionalString

Id of the category.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

      dayProfileoptionalObject[]

The day profile object.

        backColoroptionalString

BackGround color.

        descriptionString

Description of the day profile.

        endTimeoptionalNumber

Normal time end of day profile.

        foreColoroptionalString

ForeGround color.

        idoptionalString

Day profile ID.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

        isVariableBoolean

True if day profile is variable.

        startTimeoptionalNumber

Normal time start of day profile.

      departmentoptionalObject[]
        descriptionoptionalString

Description of the department.

        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.

      descriptionString

Description of the base demand.

      favoriteBoolean

True if base demans is favorite.

      foreColorString

ForeGround color in HEX without #.

      groupoptionalObject[]
        descriptionoptionalString

Description of the group.

        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.

      idNumber

The Id of the base demand.

      inactiveBoolean

True if the base demand is inavtive.

      maximumBidsoptionalObject[]
        amountoptionalNumber

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.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

        startTimeoptionalNumber

Start time of the interval in seconds.

      qualificationSetupoptionalObject[]
        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

        qualificationoptionalObject[]
          descriptionoptionalString

Description of the qualification.

          empQualIdoptionalString

Id of the employee qualification.

          idoptionalNumber

Id of the demand qualification.

          orderoptionalNumber

Order of qualifications.

          primaryoptionalBoolean

true = This is a primary qualification.

      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

      versionNumber

Version number of the base demand.

      visibilityString

If the plan is global or private.

  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": {
"baseDemand": [
{
"id": 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":["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],
"normalTime": [
{
"startTime": 0,
"endTime": 3600,
"isRequired": false,
"isLocked": true
}
],
"attendanceTime": [
{
"startTime": 0,
"endTime": 3800,
"isRequired": false,
"isLocked": true
}
],
"dayProfile": [
{
"id": "DAY",
"startTime": 46800,
"endTime": 61200,
"description": "Day Shift 13:00 - 17:00",
"isVariable" : true,
"foreColor": "000080",
"backColor": "00FF40",
"isRequired": false,
"isLocked": true
}
],
"requiredEmployees": [
{
"amount": 3,
"isRequired": false,
"isLocked": true
}
],
"department": [
{
"id": "0000007215",
"description": "SAP-HR-department 15",
"isRequired": false,
"isLocked": true,
"isStrict": true
}
],
"assignmentMethod": [
{
"method": "A",
"isRequired": false,
"isLocked": true
}
],
"group": [
{
"id": "1",
"description": "BH1",
"isRequired": false,
"isLocked": true,
"isStrict": true
}
],
"approvalGroup": [
{
"id": "01",
"description": "Kem Default",
"isRequired": true,
"isLocked": true
}
],
"maximumBids": [
{
"amount": 9,
"isRequired": false,
"isLocked": true
}
],
"category": [
{
"id": "02",
"description": "Part-day absence",
"isRequired": false,
"isLocked": true
}
],
"ignoreDayProfile": [
{
"value": true,
"isLocked": true
}
],
"acceptBefore": [
{
"days": 2,
"isRequired": false,
"isLocked": true
}
],
"qualificationSetup": [
{
"isRequired": true,
"isLocked": true,
"qualification": [
{
"QualificationsRecId": 182528,
"description": "Line operator",
"primary": true,
"order": 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.