Absences
Create absence
post /api/http/absences
Create an absence for a given profile ( member )
Rights, that may be checked: Update absences
|
Request arguments |
---|
object with fields: member : string 
reason : string 
description : string 
location : string ( Nullable and Optional )
since : string (format: full-date) 
till : string (format: full-date) 
available : boolean ( Optional , defaults to false )
icon : string 
customFieldValues : array of CustomFieldInputValue ( Nullable and Optional , defaults to null )
|
|
Get all absences
get /api/http/absences
Search absences. Parameters are applied as ' AND ' filters.
Rights, that may be checked: View absences
|
Request arguments |
---|
$skip : string (Query) ( Nullable and Optional , defaults to null )
| $top : integer (format: int32) (Query) ( Nullable and Optional , defaults to 100 )
| member : string (Query) ( Nullable and Optional , defaults to null )
| members : array of string (Query) ( Nullable and Optional , defaults to null )
| location : string (Query) ( Nullable and Optional , defaults to null )
| team : string (Query) ( Nullable and Optional , defaults to null )
| since : string (format: full-date) (Query) ( Nullable and Optional , defaults to null )
| till : string (format: full-date) (Query) ( Nullable and Optional , defaults to null )
| viewMode : AbsenceListMode (Query) ( Optional , defaults to "All" )
| reason : string (Query) ( Nullable and Optional , defaults to null )
|
Response |
---|
object with fields: next : string 
totalCount : integer (format: int32) ( Nullable and Optional , defaults to null )
data : array of AbsenceRecord 
|
|
Approve absence
post /api/http/absences/{id}/approve
Approve/unapprove an existing absence. Setting approve to true will approve the absence, false will remove the approval.
Rights, that may be checked: Approve absences
|
Request arguments |
---|
id : string (Path) 
| object with fields: approve : boolean 
|
|
Get all absences by member
get /api/http/absences/member:{member}
Get absences for a given profile ID
Rights, that may be checked: View absences
|
Request arguments |
---|
member : string (Path) 
|
|
Get absence
get /api/http/absences/{id}
Get an absence
Rights, that may be checked: View absences
|
Request arguments |
---|
id : string (Path) 
|
|
Update absence
patch /api/http/absences/{id}
Update an existing absence. Optional parameters will be ignored when not specified and updated otherwise.
Rights, that may be checked: Update absences
|
Request arguments |
---|
id : string (Path) 
| object with fields: member : string ( Nullable and Optional , defaults to null )
reason : string ( Nullable and Optional , defaults to null )
description : string ( Nullable and Optional , defaults to null )
location : string ( Nullable and Optional )
since : string (format: full-date) ( Nullable and Optional , defaults to null )
till : string (format: full-date) ( Nullable and Optional , defaults to null )
available : boolean 
icon : string ( Nullable and Optional , defaults to null )
customFieldValues : array of CustomFieldInputValue ( Nullable and Optional , defaults to null )
|
|
Delete absence
delete /api/http/absences/{id}
Archive/restore an existing absence. Setting delete to true will archive the absence, false will restore it.
Rights, that may be checked: Update absences
, Manage historical absences
|
Request arguments |
---|
id : string (Path) 
| delete : boolean (Query) ( Optional , defaults to true )
|
|
Delete absence approval
delete /api/http/absences/{id}/delete-approval
Delete approval for a given absence
Rights, that may be checked: Approve absences
|
Request arguments |
---|
id : string (Path) 
|
|
Create absence reason
post /api/http/absences/absence-reasons
Create a new absence reason
Rights, that may be checked: Manage absence types
|
Request arguments |
---|
object with fields: name : string 
description : string 
defaultAvailability : boolean 
approvalRequired : boolean 
icon : string ( Nullable and Optional , defaults to null )
|
|
Get all absence reasons
get /api/http/absences/absence-reasons
Get available absence reasons
Rights, that may be checked: View absence types
|
Request arguments |
---|
withArchived : boolean (Query) ( Optional , defaults to false )
|
|
Get absence reason
get /api/http/absences/absence-reasons/{id}
Get an absence reason
Rights, that may be checked: View absence types
|
Request arguments |
---|
id : string (Path) 
|
|
Update absence reason
patch /api/http/absences/absence-reasons/{id}
Update an existing absence reason
Rights, that may be checked: Manage absence types
|
Request arguments |
---|
id : string (Path) 
| object with fields: name : string 
description : string 
defaultAvailability : boolean 
approvalRequired : boolean 
icon : string ( Nullable and Optional , defaults to null )
|
|
Delete absence reason
delete /api/http/absences/absence-reasons/{id}
Archive/restore an existing absence reason. Setting delete to true will archive the absence reason, false will restore it.
Rights, that may be checked: Manage absence types
|
Request arguments |
---|
id : string (Path) 
| delete : boolean (Query) ( Optional , defaults to true )
|
|
Last modified: 08 September 2022