ProRoster - Get plan bids

API Url

Use it for loading the list of the bids in a plan within a period of time.

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

Permissions: user

Path parameters

FieldTypeDescription
idNumber

The plan's unique identifier.

Query parameters

FieldTypeDescription
fromoptionalDate

Start date for loading demands. Default is TODAY - 7.

tooptionalDate

End date for loading demands. Default is TODAY.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    bidsObject[]

List of demands.

      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.

      statusNumber

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.

  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": {
"bids": [
{
"id": 2163180529,
"demandId": 2163178001,
"empId": "951",
"empName": "Joey Tribiani",
"comment": "Here is my new phone number: xxxxxxxxxxx",
"status": 1
},
{
"id": 2163180451,
"demandId": 2163178307,
"id": 2163178822,
"empId": "951",
"empName": "Joey Tribiani",
"comment": "",
"status": 2
}
]
},
"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.