ProRoster - Create base demand

API Url

Use it for creating a base demand.

POST
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[]

Day profile for the base demand.

        idoptionalString

Day profile ID.

        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.

        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.

        qualificationsoptionalObject[]
          idNumber

Id of the employee qualification.

          orderNumber

Order of qualification.

          primaryBoolean

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

      visibilityString

If the plan is global ("G") or private ("P").

Allowed values:"P""G"

Request example:

{
"request": {
"data": {
"baseDemand": [
{
"name": "Waiter, razvan132",
"inactive": false,
"favorite": true,
"visibility": "P",
"description": "blah, blah, blah, blah, blah",
"foreColor": "123400",
"backColor": "567800",
"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": false
}
],
"assignmentMethod": [
{
"method": "A",
"isRequired": false,
"isLocked": true
}
],
"group": [
{
"id": "1",
"isRequired": false,
"isLocked": true,
"isStrict": true
}
],
"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.