| Requires any of the roles: | Worker, Agent, Administrator |
| POST,OPTIONS | /v1/TimeTracker/ClockInOut |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class ClockInOutRequest
Public Overridable Property Timecard As TimeCard
End Class
Public Partial Class ClockInOutResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property response As Boolean
End Class
Public Partial Class TimeCard
Public Overridable Property AgentId As Integer
Public Overridable Property CheckInId As Integer
Public Overridable Property DateLogged As Date
Public Overridable Property TimeIn As TimeSpan
Public Overridable Property TimeInDate As DateTimeOffset
Public Overridable Property TimeOut As TimeSpan
Public Overridable Property TimeOutDate As DateTimeOffset
Public Overridable Property TimeLogged As Decimal
Public Overridable Property PaymentType As Integer
Public Overridable Property ServiceCodeId As Integer
Public Overridable Property ServiceCode As String
Public Overridable Property ServiceRate As Decimal
Public Overridable Property ServiceDescription As String
Public Overridable Property WorkDescription As String
Public Overridable Property AdjustedTimeIn As TimeSpan
Public Overridable Property AdjustedTimeInDate As DateTimeOffset
Public Overridable Property AdjustedTimeOut As TimeSpan
Public Overridable Property AdjustedTimeOutDate As DateTimeOffset
Public Overridable Property IsValid As Boolean
Public Overridable Property Adjusted As Boolean
Public Overridable Property ProjectID As Integer
Public Overridable Property ProjectName As String
Public Overridable Property ClientID As Integer
Public Overridable Property ClientName As String
Public Overridable Property CategoryID As Integer
Public Overridable Property CategoryName As String
Public Overridable Property JobID As Integer
Public Overridable Property JobName As String
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/TimeTracker/ClockInOut HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Timecard":{"AgentId":0,"CheckInId":0,"DateLogged":"0001-01-01T00:00:00.0000000","TimeIn":"PT0S","TimeInDate":"0001-01-01T00:00:00.0000000+00:00","TimeOut":"PT0S","TimeOutDate":"0001-01-01T00:00:00.0000000+00:00","TimeLogged":0,"PaymentType":0,"ServiceCodeId":0,"ServiceCode":"String","ServiceRate":0,"ServiceDescription":"String","WorkDescription":"String","AdjustedTimeIn":"PT0S","AdjustedTimeInDate":"0001-01-01T00:00:00.0000000+00:00","AdjustedTimeOut":"PT0S","AdjustedTimeOutDate":"0001-01-01T00:00:00.0000000+00:00","IsValid":false,"Adjusted":false,"ProjectID":0,"ProjectName":"String","ClientID":0,"ClientName":"String","CategoryID":0,"CategoryName":"String","JobID":0,"JobName":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"response":false}