See all operations
POST: timesheets/entries
Description
Creates a new timesheet entry 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/entries
Request Body
Property
|
Description
|
ProjectId
|
The product which this artifact exists or existed within
|
TimesheetEntryId
|
The id of the timesheet entry
|
ArtifactId
|
The ID of the artifact recorded in this entry
|
EntryArtifactTypeId
|
The type of the artifact recorded in this entry
|
ProjectGroupId
|
The program this entry belongs to
|
ResourceCategoryId
|
The resource category of this entry
|
TimesheetId
|
The id of the timesheet this entry belongs to
|
TimesheetEntryTypeId
|
The id of the timesheet entry type
|
Description
|
The description of this entry
|
Effort
|
The effort of this entry (in minutes)
|
EffortDate
|
The date corresponding to the effort
|
UserId
|
The id of the user that created this entry
|
<RemoteTimesheetEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v7_0.DataObjects">
<ArtifactId i:nil="true" />
<Description i:nil="true" />
<Effort>0</Effort>
<EffortDate>0001-01-01T00:00:00</EffortDate>
<EntryArtifactTypeId i:nil="true" />
<ProjectGroupId i:nil="true" />
<ProjectId i:nil="true" />
<ResourceCategoryId i:nil="true" />
<TimesheetEntryId i:nil="true" />
<TimesheetEntryTypeId i:nil="true" />
<TimesheetId i:nil="true" />
<UserId i:nil="true" />
</RemoteTimesheetEntry>
{"ProjectId":null,
"TimesheetEntryId":null,
"ArtifactId":null,
"EntryArtifactTypeId":null,
"ProjectGroupId":null,
"ResourceCategoryId":null,
"TimesheetId":null,
"TimesheetEntryTypeId":null,
"Description":null,
"Effort":0,
"EffortDate":"0001-01-01T00:00:00",
"UserId":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.
Property
|
Description
|
ProjectId
|
The product which this artifact exists or existed within
|
TimesheetEntryId
|
The id of the timesheet entry
|
ArtifactId
|
The ID of the artifact recorded in this entry
|
EntryArtifactTypeId
|
The type of the artifact recorded in this entry
|
ProjectGroupId
|
The program this entry belongs to
|
ResourceCategoryId
|
The resource category of this entry
|
TimesheetId
|
The id of the timesheet this entry belongs to
|
TimesheetEntryTypeId
|
The id of the timesheet entry type
|
Description
|
The description of this entry
|
Effort
|
The effort of this entry (in minutes)
|
EffortDate
|
The date corresponding to the effort
|
UserId
|
The id of the user that created this entry
|
<RemoteTimesheetEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v7_0.DataObjects">
<ArtifactId i:nil="true" />
<Description i:nil="true" />
<Effort>0</Effort>
<EffortDate>0001-01-01T00:00:00</EffortDate>
<EntryArtifactTypeId i:nil="true" />
<ProjectGroupId i:nil="true" />
<ProjectId i:nil="true" />
<ResourceCategoryId i:nil="true" />
<TimesheetEntryId i:nil="true" />
<TimesheetEntryTypeId i:nil="true" />
<TimesheetId i:nil="true" />
<UserId i:nil="true" />
</RemoteTimesheetEntry>
{"ProjectId":null,
"TimesheetEntryId":null,
"ArtifactId":null,
"EntryArtifactTypeId":null,
"ProjectGroupId":null,
"ResourceCategoryId":null,
"TimesheetId":null,
"TimesheetEntryTypeId":null,
"Description":null,
"Effort":0,
"EffortDate":"0001-01-01T00:00:00",
"UserId":null}