ProRoster - Manage company absences

API Url

Used for suppressing and unsuppressing a company absence

PUT
http://localhost:16010/ProMarkREST/web/ProRoster/plans/{planId}/company-absences

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
planIdNumber

Plan id.

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    companyAbsencesObject[]
      backColorString

Background color

      codeString

Absence code

      dateDate

Absence date

      descriptionString

Absence description

      empIdString

Employee Id

      foreColorString

Foreground color

      isDeletedBoolean

TRUE if the change is deleted

      isHolidayWithWorkBoolean

TRUE if the absenc is Holiday with work

      isPublishedBoolean

TRUE if the absence is published

      isSuppressedBoolean

TRUE if the absence will be suppressed FALSE if the absence will be unsuppressed

      shortDescriptionString

Absence short description

Request example:

{
"request": {
"data": {
"companyAbsences": [
{
"empId": "4695",
"date": "2023-10-27",
"code": "A",
"description": "A-Bank Holidays",
"shortDescription": "Bank Hol.",
"backColor": "B7FFB7",
"foreColor": "008000",
"isCompanyAbs": true,
"isPublished": true,
"isDeleted": false,
"isSuppressed": false,
"isHolidayWithWork": 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.