GET api/admin/v1/users/{userId}/delegationsReceived?page={page}&pageSize={pageSize}

Get all delegations received from other users

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

ID of the user

integer

Required

page

Current page

integer

Default value is 1

pageSize

Page size

integer

Default value is 50

Body Parameters

None

Response Information

Resource Description

List of delegations

Collection of UserDelegationDto
NameDescriptionTypeAdditional information
DelegatorUser

The delegator user

UserMinDto

None

DelegateUser

Delegate user

UserMinDto

None

StartDate

Start of the delegation

date

None

EndDate

End of the delegation

date

None

CanModifyHours

True if the user delegate can modify the hours

boolean

None

CanSubmitHours

True if the user delegate can submit the hours

boolean

None

CanReceiveEmail

True if the user delegate can receive the emails of the delegator

boolean

None

Id

Unique ID

integer

None

Response Formats

application/json, text/json

Sample:
[
  {
    "DelegatorUser": {
      "Login": "sample string 1",
      "FullName": "sample string 2",
      "Avatar": "sample string 3",
      "Id": 4
    },
    "DelegateUser": {
      "Login": "sample string 1",
      "FullName": "sample string 2",
      "Avatar": "sample string 3",
      "Id": 4
    },
    "StartDate": "2024-11-01T19:42:16.1777221+01:00",
    "EndDate": "2024-11-01T19:42:16.1777221+01:00",
    "CanModifyHours": true,
    "CanSubmitHours": true,
    "CanReceiveEmail": true,
    "Id": 4
  },
  {
    "DelegatorUser": {
      "Login": "sample string 1",
      "FullName": "sample string 2",
      "Avatar": "sample string 3",
      "Id": 4
    },
    "DelegateUser": {
      "Login": "sample string 1",
      "FullName": "sample string 2",
      "Avatar": "sample string 3",
      "Id": 4
    },
    "StartDate": "2024-11-01T19:42:16.1777221+01:00",
    "EndDate": "2024-11-01T19:42:16.1777221+01:00",
    "CanModifyHours": true,
    "CanSubmitHours": true,
    "CanReceiveEmail": true,
    "Id": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserDelegationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oryx.Web.Api.Models">
  <UserDelegationDto>
    <Id>4</Id>
    <CanModifyHours>true</CanModifyHours>
    <CanReceiveEmail>true</CanReceiveEmail>
    <CanSubmitHours>true</CanSubmitHours>
    <DelegateUser>
      <Id>4</Id>
      <Avatar>sample string 3</Avatar>
      <FullName>sample string 2</FullName>
      <Login>sample string 1</Login>
    </DelegateUser>
    <DelegatorUser>
      <Id>4</Id>
      <Avatar>sample string 3</Avatar>
      <FullName>sample string 2</FullName>
      <Login>sample string 1</Login>
    </DelegatorUser>
    <EndDate>2024-11-01T19:42:16.1777221+01:00</EndDate>
    <StartDate>2024-11-01T19:42:16.1777221+01:00</StartDate>
  </UserDelegationDto>
  <UserDelegationDto>
    <Id>4</Id>
    <CanModifyHours>true</CanModifyHours>
    <CanReceiveEmail>true</CanReceiveEmail>
    <CanSubmitHours>true</CanSubmitHours>
    <DelegateUser>
      <Id>4</Id>
      <Avatar>sample string 3</Avatar>
      <FullName>sample string 2</FullName>
      <Login>sample string 1</Login>
    </DelegateUser>
    <DelegatorUser>
      <Id>4</Id>
      <Avatar>sample string 3</Avatar>
      <FullName>sample string 2</FullName>
      <Login>sample string 1</Login>
    </DelegatorUser>
    <EndDate>2024-11-01T19:42:16.1777221+01:00</EndDate>
    <StartDate>2024-11-01T19:42:16.1777221+01:00</StartDate>
  </UserDelegationDto>
</ArrayOfUserDelegationDto>