PUT api/Subcontracts/{subcontractId}/Timesheets/{timesheetId}/Versions/{timesheetVersionId}

Recover sfr

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subcontractId

integer

Required

timesheetId

integer

Required

timesheetVersionId

string

None.

Body Parameters

TimesheetEditCommandRequest
NameDescriptionTypeAdditional information
SubcontractId

integer

None.

TimesheetId

integer

None.

ApprovedExternally

boolean

None.

WorkDescription

string

None.

Request Formats

application/json, text/json

Sample:
{
  "subcontractId": 1,
  "timesheetId": 2,
  "approvedExternally": true,
  "workDescription": "sample string 4"
}

text/html

Sample:
{"subcontractId":1,"timesheetId":2,"approvedExternally":true,"workDescription":"sample string 4"}

application/xml, text/xml

Sample:
<TimesheetEditCommandRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.AppServices.SubcontractAgg.CommandHandlers">
  <ApprovedExternally>true</ApprovedExternally>
  <SubcontractId>1</SubcontractId>
  <TimesheetId>2</TimesheetId>
  <WorkDescription>sample string 4</WorkDescription>
</TimesheetEditCommandRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiDataResultOfBoolean
NameDescriptionTypeAdditional information
Data

boolean

None.

Success

boolean

None.

Message

string

None.

Errors

Collection of CustomError

None.

Warnings

Collection of string

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.