ProRoster - Update an availability

API Url

Use it for updating the availability for an employee.

PUT
http://localhost:16010/ProMarkREST/rest/ProRoster/availabilities/{id}

Permissions: user

Path parameters

FieldTypeDescription
objectIdoptionalString

The id of the availability.

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

      empIdString

Employee's id .

    availabilitiesObject[]

Collection of availabilities.

      commentString

Comment for the availability.

      endDateDate

The end date of the availability.

      excludeWeekendsLogical

If TRUE the repeat pattern is not to be repeated on weekends.

      idString

The unique id of the availability.

      inclDaysLogical[7]

Days to repeat.

      intvFromNumber

Start time of the availability.

      intvToNumber

End time of the availability.

      isAllDayLogical

Yes/No.

      isRepeatingLogical

TRUE/FALSE.

      repeatEveryNumber

Periods before repeat .

      repeatTypeNumber

1 = Daily, 2 = Weekly.

      startDateDate

The start date of the availability.

      typeNumber

The type of the availability.

Request example:

{
"request":{
"data":{
"availabilities":{
"id": "2163169092",
"empId": "892",
"startDate": "2019-06-27",
"endDate": "2019-06-27",
"intvFrom": 1500,
"intvto": 6000,
"isAllDay": "No",
"Type": 1,
"isRepeating": "No",
"repeatType": "" ,
"repeatEvery": "" ,
"excludeWeekends": "No",
"inclDays":[],
"comment": "Doctor appointment in the morning"
}
}
}
}

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"