JetBrains Space Help

Absences

Create absence

post /api/http/absences

Create an absence for a given profile ( member )

Required permissions: Update absences

Request arguments

object with fields:

  • member: string ( Required )

  • reason: string ( Required )

  • description: string ( Required )

  • location: string ( Nullable and Optional )

  • since: string (format: full-date) ( Required )

  • till: string (format: full-date) ( Required )

  • available: boolean ( Optional , defaults to false)

  • icon: string ( Required )

  • 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.

Required permissions: 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 ( Required )

  • totalCount: integer (format: int32) ( Nullable and Optional , defaults to null)

  • data: array of AbsenceRecord ( Required )

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.

Required permissions: Approve absences

Request arguments

id: string (Path) ( Required )

object with fields:

  • approve: boolean ( Required )

Response

No arguments

Get all absences by member

get /api/http/absences/member:{member}

Get absences for a given profile ID

Required permissions: View absences

Request arguments

member: string (Path) ( Required )

Response

array of AbsenceRecord

Get absence

get /api/http/absences/{id}

Get an absence

Required permissions: View absences

Request arguments

id: string (Path) ( Required )

Update absence

patch /api/http/absences/{id}

Update an existing absence. Optional parameters will be ignored when not specified and updated otherwise.

Required permissions: Update absences

Request arguments

id: string (Path) ( Required )

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 ( Required )

  • 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.

Required permissions: Update absences, Manage historical absences

Request arguments

id: string (Path) ( Required )

delete: boolean (Query) ( Optional , defaults to true)

Response

No arguments

Delete absence approval

delete /api/http/absences/{id}/delete-approval

Delete approval for a given absence

Required permissions: Approve absences

Request arguments

id: string (Path) ( Required )

Response

No arguments

Create absence reason

post /api/http/absences/absence-reasons

Create a new absence reason

Required permissions: Manage absence types

Request arguments

object with fields:

  • name: string ( Required )

  • description: string ( Required )

  • defaultAvailability: boolean ( Required )

  • approvalRequired: boolean ( Required )

  • icon: string ( Nullable and Optional , defaults to null)

  • category: string ( Nullable and Optional , defaults to null)

Get all absence reasons

get /api/http/absences/absence-reasons

Get available absence reasons

Required permissions: View absence types

Request arguments

withArchived: boolean (Query) ( Optional , defaults to false)

Response

array of AbsenceReasonRecord

Get absence reason

get /api/http/absences/absence-reasons/{id}

Get an absence reason

Required permissions: View absence types

Request arguments

id: string (Path) ( Required )

Update absence reason

patch /api/http/absences/absence-reasons/{id}

Update an existing absence reason

Required permissions: Manage absence types

Request arguments

id: string (Path) ( Required )

object with fields:

  • name: string ( Required )

  • description: string ( Required )

  • defaultAvailability: boolean ( Required )

  • approvalRequired: boolean ( Required )

  • icon: string ( Nullable and Optional , defaults to null)

  • category: 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.

Required permissions: Manage absence types

Request arguments

id: string (Path) ( Required )

delete: boolean (Query) ( Optional , defaults to true)

Response

No arguments

Last modified: 06 September 2023