ProRoster - Get plan audit records

API Url

Use it to get plan audit records

GET
http://localhost:16010/ProMarkREST/web/ProRoster/plans/{planId}/plan-audit

Permissions: user

Request headers

FieldTypeDescription
Accept-LanguageoptionalString

=en-GB Language use for localization.

X-ClientoptionalString

=Client type.

Allowed values:"Portal""Mobile""Admin"
X-RoleoptionalNumber

ProMark role (1: Employee, 2: User).

Allowed values:{12}
X-WebPart-IdoptionalNumber

Unique web-part identifier.

Path parameters

FieldTypeDescription
idNumber

The plan Id.

Query parameters

FieldTypeDescription
fromoptionalDate

From requested date

tooptionalDate

To requested date

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    forcedPublishesObject[]

Collection of plan audit records.

      dateDate

The date that the plan was published on.

      idNumber

Object Id for .

      nameString

First + last name of the person who published.

      planDescriptionString

Description of the plan

      planIdNumber

The Id of the plan.

      publishedEmployeeInfoBoolean

If True then the demands/absences were published.

      publishedRosterBoolean

If True then the ProRoster shifts were published.

      publishedUntilDate

The date that the plan is published until.

      publishedVacantShiftsBoolean

If True then the vacant shifts were published.

      userIdString

The Id of the user who published the plan.

  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": {
"forcedPublishes": [
{
"id": 2163995151,
"userId": "FGN",
"planId": "2163995154",
"date": "2021-04-22",
"publishedUntil": "2021-04-22",
"planDescription": "plan 1",
"name": "Fares Nobani",
"publishedVacantShifts" : TRUE,
"publishedEmployeeInfo" : FALSE,
"publishedRoster" : FALSE,
}
]}}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.