Create timesheet
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Body Required
newOtherEmployeeTimeEntry
-
clientId integer
-
date string
-
description string
-
employeeId integer
-
isBillable boolean
-
orderId integer
-
status string
Values are
UNSUBMITTED
,SUBMITTED
,REJECTED
,APPROVED
, orBILLED
. -
taskId integer
-
time string
PUT /api-v1/timesheet
curl \
-X PUT http://10.10.10.132/api-v1/timesheet \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '{"clientId":42,"date":"string","description":"string","employeeId":42,"isBillable":true,"orderId":42,"status":"UNSUBMITTED","taskId":42,"time":"string"}'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
{
"clientId": 42,
"date": "string",
"description": "string",
"employeeId": 42,
"isBillable": true,
"orderId": 42,
"status": "UNSUBMITTED",
"taskId": 42,
"time": "string"
}
Response examples (200)
{
"data": {},
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"data": "string",
"errorCode": "string",
"fieldName": "string",
"isSevere": true
}
]
},
"valid": true
}