PUT api/admin/v1/users/{userId}/delegations

Add a new user delegate to the user

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

ID of the user

integer

Required

Body Parameters

New user delegate

UserDelegationEditDto
NameDescriptionTypeAdditional information
DelegateUserId

ID of the delegate user

integer

None

StartDateIso

Start of the delegation (format: YYYY-MM-DD)

string

None

EndDateIso

End of the delegation (format: YYYY-MM-DD)

string

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

Request Formats

application/json, text/json

Sample:
{
  "DelegateUserId": 1,
  "StartDateIso": "sample string 2",
  "EndDateIso": "sample string 3",
  "CanModifyHours": true,
  "CanSubmitHours": true,
  "CanReceiveEmail": true,
  "Id": 7
}

application/xml, text/xml

Sample:
<UserDelegationEditDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oryx.Web.Api.Models">
  <Id>7</Id>
  <CanModifyHours>true</CanModifyHours>
  <CanReceiveEmail>true</CanReceiveEmail>
  <CanSubmitHours>true</CanSubmitHours>
  <DelegateUserId>1</DelegateUserId>
  <EndDateIso>sample string 3</EndDateIso>
  <StartDateIso>sample string 2</StartDateIso>
</UserDelegationEditDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

200

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None

Content

HttpContent

None

StatusCode

HttpStatusCode

None

ReasonPhrase

string

None

Headers

Collection of Object

None

RequestMessage

HttpRequestMessage

None

IsSuccessStatusCode

boolean

None