ProRoster - Get Demands

API Url

Use it for loading the list of the demands assigned to a plan.

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

Permissions: user

Path parameters

FieldTypeDescription
idNumber

The plan unique identifier.

Query parameters

FieldTypeDescription
expandoptionalString

Expand specified properties (comma delimiter) with descriptions. Only the "bids" can be expanded so far.

fieldsoptionalString

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

fromoptionalDate

Start date for loading demands.

hasBidsoptionalBoolean

TRUE = loads only the demands which contains bids.

pendingBidsoptionalBoolean

TRUE = filtering the bids waiting for approval. (the ones with bid status = 1).

tooptionalDate

End date for loading demands.

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.

    demandsObject[]

List of 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
        startTimeoptionalNumber

Start time of the interval in seconds.

      backColorString

BackGround color in HEX without #.

      baseDemandIdNumber

The Id of the base demand from which the demand was created.

      bidsObject[]

List of demands.

        approverIdString

The user id who approved the bid.

        commentString

Employee's comment.

        demandIdNumber

The Id of the plan on which was bidded.

        empIdString

The Id of the employee who bidded on the shift.

        empNameString

The name of the employee who bidded on the shift.

        idNumber

The Id of the bid.

        statusString

1: Employee has bid on the shift. 2: The employee has been assigned the shift. 3: Declined. The employee has been declined by the Manager/Approver.

      categoryoptionalObject[]
        descriptionoptionalString

Description of the category.

        idoptionalString

Id of the category.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

      closedBiddingoptionalBoolean

Is the demand closed for bidding or not. Relevant only if the demand was published to ESM.

      counterNumber

Counts the assigned demands of this demand.

      dateDate

The date of the demand .

      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.

      descriptionString

Description of the demand.

      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.

      idNumber

The Id of the demand.

      isPublishedBoolean

Is the demand published or not.

      maximumBidsoptionalObject[]
        amountoptionalNumber

Number of employees to bid in.

        isLockedBoolean

Is the attribute locked.

        isRequiredBoolean

Is the attribute required.

      nameString

The name of the 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.

      notesObject[]
        idNumber

Id of the note.

        isEmpNoteBoolean

TRUE if the note is an employee note.

        textString

Note's text.

      planIdNumber

The Id of the plan.

      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.

      versionNumber

Version number of the demand.

  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": {
"demands": [
{
"id": 2153908066,
"baseDemandId": 2134557518,
"planId": 2153557517,
"counter": 2,
"date": "2021-08-24",
"name": "Waiter, faress",
"description": "blah, blah, blah, blah, blah",
"foreColor": "000040",
"backColor": "000050",
"version": 1,
"isPublished": true,
"closedBidding": false,
"attendanceTime": [
{
"startTime": 0,
"endTime": 3600,
"isRequired": false,
"isLocked": true
}
],
"dayProfile": [
{
"id": "DAY",
"startTime": 46800,
"endTime": 61200,
"description": "Day Shift 13:00 - 17:00",
"isVariable": false,
"foreColor": "000080",
"backColor": "00FF40",
"isRequired": false,
"isLocked": true
}
],
"requiredEmployees": [
{
"amount": 5,
"isRequired": true,
"isLocked": true
}
],
"department": [
{
"id": "0000007215",
"description": "SAP-HR-department 15",
"isRequired": false,
"isLocked": true
}
],
"assignmentMethod": [
{
"isRequired": false,
"isLocked": false
}
],
"group": [
{
"id": "1",
"description": "BH1",
"isRequired": false,
"isLocked": true
}
],
"approvalGroup": [
{
"id": "01",
"description": "Kem Default",
"isRequired": true,
"isLocked": true
}
],
"maximumBids": [
{
"amount": 10,
"isRequired": true,
"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,
"qualifications": [
{
"id": "1",
"description": "Welding certificate f",
"primary": true,
"order": 1
},
{
"id": "2",
"description": "Truck certificate",
"primary": true,
"order": 2
}
]
}
],
"bids": [
{
"id": 2163180529,
"demandId": 2163182268,
"empId": "951",
"empName": "Joey Tribiani",
"comment": "Also available next week",
"status": 2,
"approverId": "CMD"
}
],
"notes": [
{
"id": 2163396278,
"text": "bring coffee in the morning",
"isEmpNote": true
},
{
"id": 2163396279,
"text": "no breaks during this shift"
}
]
}
]
},
"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.