POST api/Subcontracts/{subcontractId}/Timesheets/tmsr

Create TMSR to timesheet

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subcontractId

integer

Required

Body Parameters

SelectableTmsrFilter
NameDescriptionTypeAdditional information
ProjectId

integer

None.

SubcontractId

integer

None.

TextFilter

string

None.

IsSupervisor

boolean

None.

SupervisorUserId

integer

None.

WithTmsrClose

boolean

None.

TmsrNumberCollection

Collection of string

None.

Page

Page

None.

Orders

Collection of Order

None.

Request Formats

application/json, text/json

Sample:
{
  "projectId": 1,
  "subcontractId": 1,
  "textFilter": "sample string 1",
  "isSupervisor": true,
  "supervisorUserId": 1,
  "withTmsrClose": true,
  "tmsrNumberCollection": [
    "sample string 1",
    "sample string 2"
  ],
  "page": {
    "number": 1,
    "size": 2,
    "skip": 0
  },
  "orders": [
    {
      "name": "sample string 1",
      "descending": true
    },
    {
      "name": "sample string 1",
      "descending": true
    }
  ]
}

text/html

Sample:
{"projectId":1,"subcontractId":1,"textFilter":"sample string 1","isSupervisor":true,"supervisorUserId":1,"withTmsrClose":true,"tmsrNumberCollection":["sample string 1","sample string 2"],"page":{"number":1,"size":2,"skip":0},"orders":[{"name":"sample string 1","descending":true},{"name":"sample string 1","descending":true}]}

application/xml, text/xml

Sample:
<SelectableTmsrFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.TimeAndMaterialSrAgg">
  <Orders xmlns:d2p1="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.Dtos">
    <d2p1:Order>
      <d2p1:Descending>true</d2p1:Descending>
      <d2p1:Name>sample string 1</d2p1:Name>
    </d2p1:Order>
    <d2p1:Order>
      <d2p1:Descending>true</d2p1:Descending>
      <d2p1:Name>sample string 1</d2p1:Name>
    </d2p1:Order>
  </Orders>
  <Page xmlns:d2p1="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.Dtos">
    <d2p1:Number>1</d2p1:Number>
    <d2p1:Size>2</d2p1:Size>
  </Page>
  <IsSupervisor>true</IsSupervisor>
  <ProjectId>1</ProjectId>
  <SubcontractId>1</SubcontractId>
  <SupervisorUserId>1</SupervisorUserId>
  <TextFilter>sample string 1</TextFilter>
  <TmsrNumberCollection xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </TmsrNumberCollection>
  <WithTmsrClose>true</WithTmsrClose>
</SelectableTmsrFilter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiDataResultOfIPagedListOfTimeAndMaterialSrBasicInfoDto
NameDescriptionTypeAdditional information
Data

IPagedListOfTimeAndMaterialSrBasicInfoDto

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.