POST api/HourRegistration/ApproveWeek

Approves all hourregistrations of a user for one week. Only for admins and only when the week is closed. Reopening the week (Put with isClosed = false) revokes the approval.

Request Information

URI Parameters

None.

Body Parameters

crmUserId, week and year of the week to approve

ApproveWeekModel
NameDescriptionTypeAdditional information
crmUserId

string

Required

String length: inclusive between 0 and 38

week

integer

Required

Range: inclusive between 1 and 53

year

integer

Required

Range: inclusive between 0 and 2147483647

Request Formats

application/json, text/json

Sample:
{
  "crmUserId": "sample string 1",
  "week": 2,
  "year": 3
}

application/xml, text/xml

Sample:
<ApproveWeekModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.HourRegistration.DTO">
  <crmUserId>sample string 1</crmUserId>
  <week>2</week>
  <year>3</year>
</ApproveWeekModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.