POST Api/AgentBudgetApi/CreateTimeSheet

Request Information

URI Parameters

None.

Body Parameters

AgentTimeSheet
NameDescriptionTypeAdditional information
Id

integer

None.

AgentMonthlyTimeSheetId

integer

None.

ScheduleId

integer

None.

TaskTypeId

globally unique identifier

None.

TimeFrom

date

None.

TimeTo

date

None.

Description

string

None.

CreatedBy

integer

None.

CreatedOn

date

None.

UpdatedBy

integer

None.

UpdatedOn

date

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

Year

integer

None.

month

integer

None.

Source

string

None.

EnDivision

string

None.

EnAsset

string

None.

EnBuilding

string

None.

EnSubBuilding

string

None.

EnLocation

string

None.

EnCategory

string

None.

TotalHours

string

None.

Comment

string

None.

AgentId

integer

None.

WorkFlowStatus

globally unique identifier

None.

InitialName

string

None.

ScheduleDate

date

None.

M_Category

globally unique identifier

None.

EnTaskType

string

None.

TimeSheetStatus

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "AgentMonthlyTimeSheetId": 2,
  "ScheduleId": 1,
  "TaskTypeId": "10c8ca82-ff38-4c3c-ac9f-706b456ff40b",
  "TimeFrom": "2025-05-25T18:50:59.4138276+04:00",
  "TimeTo": "2025-05-25T18:50:59.4138276+04:00",
  "Description": "sample string 5",
  "CreatedBy": 6,
  "CreatedOn": "2025-05-25T18:50:59.4138276+04:00",
  "UpdatedBy": 1,
  "UpdatedOn": "2025-05-25T18:50:59.4138276+04:00",
  "IsActive": true,
  "IsDeleted": true,
  "Year": 1,
  "month": 1,
  "Source": "sample string 10",
  "EnDivision": "sample string 11",
  "EnAsset": "sample string 12",
  "EnBuilding": "sample string 13",
  "EnSubBuilding": "sample string 14",
  "EnLocation": "sample string 15",
  "EnCategory": "sample string 16",
  "TotalHours": "sample string 17",
  "Comment": "sample string 18",
  "AgentId": 1,
  "WorkFlowStatus": "5261c20d-c87c-46e9-9e97-8d8e8a7e8ec8",
  "InitialName": "sample string 19",
  "ScheduleDate": "2025-05-25T18:50:59.4138276+04:00",
  "M_Category": "483c5bfe-3b49-4484-9546-5c6fa5880c9a",
  "EnTaskType": "sample string 21",
  "TimeSheetStatus": "sample string 22"
}

text/html, multipart/form-data

Sample:
{"Id":1,"AgentMonthlyTimeSheetId":2,"ScheduleId":1,"TaskTypeId":"10c8ca82-ff38-4c3c-ac9f-706b456ff40b","TimeFrom":"2025-05-25T18:50:59.4138276+04:00","TimeTo":"2025-05-25T18:50:59.4138276+04:00","Description":"sample string 5","CreatedBy":6,"CreatedOn":"2025-05-25T18:50:59.4138276+04:00","UpdatedBy":1,"UpdatedOn":"2025-05-25T18:50:59.4138276+04:00","IsActive":true,"IsDeleted":true,"Year":1,"month":1,"Source":"sample string 10","EnDivision":"sample string 11","EnAsset":"sample string 12","EnBuilding":"sample string 13","EnSubBuilding":"sample string 14","EnLocation":"sample string 15","EnCategory":"sample string 16","TotalHours":"sample string 17","Comment":"sample string 18","AgentId":1,"WorkFlowStatus":"5261c20d-c87c-46e9-9e97-8d8e8a7e8ec8","InitialName":"sample string 19","ScheduleDate":"2025-05-25T18:50:59.4138276+04:00","M_Category":"483c5bfe-3b49-4484-9546-5c6fa5880c9a","EnTaskType":"sample string 21","TimeSheetStatus":"sample string 22"}

application/xml, text/xml

Sample:
<AgentTimeSheet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSMChecklistFlow.DTO">
  <AgentId>1</AgentId>
  <AgentMonthlyTimeSheetId>2</AgentMonthlyTimeSheetId>
  <Comment>sample string 18</Comment>
  <CreatedBy>6</CreatedBy>
  <CreatedOn>2025-05-25T18:50:59.4138276+04:00</CreatedOn>
  <Description>sample string 5</Description>
  <EnAsset>sample string 12</EnAsset>
  <EnBuilding>sample string 13</EnBuilding>
  <EnCategory>sample string 16</EnCategory>
  <EnDivision>sample string 11</EnDivision>
  <EnLocation>sample string 15</EnLocation>
  <EnSubBuilding>sample string 14</EnSubBuilding>
  <EnTaskType>sample string 21</EnTaskType>
  <Id>1</Id>
  <InitialName>sample string 19</InitialName>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <M_Category>483c5bfe-3b49-4484-9546-5c6fa5880c9a</M_Category>
  <ScheduleDate>2025-05-25T18:50:59.4138276+04:00</ScheduleDate>
  <ScheduleId>1</ScheduleId>
  <Source>sample string 10</Source>
  <TaskTypeId>10c8ca82-ff38-4c3c-ac9f-706b456ff40b</TaskTypeId>
  <TimeFrom>2025-05-25T18:50:59.4138276+04:00</TimeFrom>
  <TimeSheetStatus>sample string 22</TimeSheetStatus>
  <TimeTo>2025-05-25T18:50:59.4138276+04:00</TimeTo>
  <TotalHours>sample string 17</TotalHours>
  <UpdatedBy>1</UpdatedBy>
  <UpdatedOn>2025-05-25T18:50:59.4138276+04:00</UpdatedOn>
  <WorkFlowStatus>5261c20d-c87c-46e9-9e97-8d8e8a7e8ec8</WorkFlowStatus>
  <Year>1</Year>
  <month>1</month>
</AgentTimeSheet>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AgentTimeSheet'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json, text/html, multipart/form-data

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>