POST api/Project/AddTimeLogMobile
Request Information
URI Parameters
None.
Body Parameters
TimeLogCreateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
None. |
|
| UserId | integer |
None. |
|
| DateString | string |
None. |
|
| StartTime | string |
None. |
|
| EndTime | string |
None. |
|
| SpendHours | integer |
None. |
|
| SpendMinutes | integer |
None. |
|
| Description | string |
None. |
|
| IsBillable | boolean |
None. |
|
| IsPaid | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProjectId": 1,
"UserId": 2,
"DateString": "sample string 3",
"StartTime": "sample string 4",
"EndTime": "sample string 5",
"SpendHours": 6,
"SpendMinutes": 7,
"Description": "sample string 8",
"IsBillable": true,
"IsPaid": true
}
application/xml, text/xml
Sample:
<TimeLogCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpmNew.Model.MobileDTO"> <DateString>sample string 3</DateString> <Description>sample string 8</Description> <EndTime>sample string 5</EndTime> <IsBillable>true</IsBillable> <IsPaid>true</IsPaid> <ProjectId>1</ProjectId> <SpendHours>6</SpendHours> <SpendMinutes>7</SpendMinutes> <StartTime>sample string 4</StartTime> <UserId>2</UserId> </TimeLogCreateDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>