POST TCPv1/Home/DriverDashBoard/CreateDriverSchedule?Token={Token}&UserID={UserID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Token

string

Required

UserID

integer

Required

Body Parameters

SaveDriverSchedule
NameDescriptionTypeAdditional information
UserCalendarID

integer

None.

AssignedToUserID

integer

None.

ScheduleID

integer

None.

TypeID

integer

None.

FlexDesc

string

None.

StartTime

time interval

None.

EndTime

time interval

None.

StartDateTime

date

None.

EndDateTime

date

None.

CreatedBy

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserCalendarID": 1,
  "AssignedToUserID": 2,
  "ScheduleID": 3,
  "TypeID": 4,
  "FlexDesc": "sample string 5",
  "StartTime": "00:00:00.1234567",
  "EndTime": "00:00:00.1234567",
  "StartDateTime": "2026-08-27T04:00:32.2024536+01:00",
  "EndDateTime": "2026-08-27T04:00:32.2024536+01:00",
  "CreatedBy": 10
}

application/xml, text/xml

Sample:
<SaveDriverSchedule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartTCPWebAPI.Models.SmartAPI">
  <AssignedToUserID>2</AssignedToUserID>
  <CreatedBy>10</CreatedBy>
  <EndDateTime>2026-08-27T04:00:32.2024536+01:00</EndDateTime>
  <EndTime>PT0.1234567S</EndTime>
  <FlexDesc>sample string 5</FlexDesc>
  <ScheduleID>3</ScheduleID>
  <StartDateTime>2026-08-27T04:00:32.2024536+01:00</StartDateTime>
  <StartTime>PT0.1234567S</StartTime>
  <TypeID>4</TypeID>
  <UserCalendarID>1</UserCalendarID>
</SaveDriverSchedule>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.