See all operations
PUT: timesheets
Description
Updates a timesheet in the system
How to Execute
To access this REST web service, you need to use the following URL (make sure to replace any parameters (eg {project_id}) with the relevant value (eg 1):
https://api.inflectra.com/Spira/Services/v7_0/RestService.svc/timesheets
Request Body
|
Property
|
Description
|
|
TimesheetId
|
The id of the timesheet
|
|
TimesheetStatusId
|
The status id of the timesheet
|
|
SubmitterUserId
|
The id of the user that created the timesheet
|
|
ApproverUserId
|
The id of the user that approved the timesheet
|
|
CreationDate
|
The date the timesheet was created
|
|
LastUpdateDate
|
The date the timesheet was updated last
|
|
StartDate
|
The initial date the timesheet covers
|
|
EndDate
|
The final date the timesheet covers
|
|
ApprovalDate
|
The date the timesheet was approved
|
|
IsDeleted
|
Was this timesheet deleted from the system?
|
|
Entries
|
The list of entries of this timesheet
|
|
SubmitterComments
|
The comment(s) made by the submitter of this timesheet
|
|
ApproverComments
|
The comment(s) made by the approver of this timesheet
|
|
Status
|
Information about the current status.
|
<RemoteTimesheet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v7_0.DataObjects">
<ApprovalDate i:nil="true" />
<Approver i:nil="true" />
<ApproverComments i:nil="true" />
<ApproverUserId i:nil="true" />
<CreationDate>0001-01-01T00:00:00</CreationDate>
<EndDate>0001-01-01T00:00:00</EndDate>
<Entries i:nil="true" />
<IsDeleted>false</IsDeleted>
<LastUpdateDate>0001-01-01T00:00:00</LastUpdateDate>
<StartDate>0001-01-01T00:00:00</StartDate>
<Status i:nil="true" />
<StatusName i:nil="true" />
<Submitter i:nil="true" />
<SubmitterComments i:nil="true" />
<SubmitterUserId i:nil="true" />
<TimesheetId i:nil="true" />
<TimesheetStatusId i:nil="true" />
</RemoteTimesheet>
{"TimesheetId":null,
"TimesheetStatusId":null,
"SubmitterUserId":null,
"ApproverUserId":null,
"Submitter":null,
"Approver":null,
"StatusName":null,
"CreationDate":"0001-01-01T00:00:00",
"LastUpdateDate":"0001-01-01T00:00:00",
"StartDate":"0001-01-01T00:00:00",
"EndDate":"0001-01-01T00:00:00",
"ApprovalDate":null,
"IsDeleted":false,
"Entries":null,
"SubmitterComments":null,
"ApproverComments":null,
"Status":null}
Return Data
The JSON and XML examples below show the shape of one entry that will be returned. It does not show an example of how that entry will be populated.