Modify my 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
timeEntry
-
clientId integer
-
clientName string
-
date string
-
description string
-
endTime string(date-time)
-
id integer
-
isBillable boolean
-
isLocked boolean
-
orderId integer
-
orderName string
-
startTime string(date-time)
-
status string
Values are
UNSUBMITTED
,SUBMITTED
,REJECTED
,APPROVED
, orBILLED
. -
taskId integer
-
taskName string
-
time string
POST /api-v1/my-timesheet
curl \
-X POST http://wyzio.app/api-v1/my-timesheet \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '{"clientId":42,"clientName":"string","date":"string","description":"string","endTime":"2024-05-04T09:42:00+00:00","id":42,"isBillable":true,"isLocked":true,"orderId":42,"orderName":"string","startTime":"2024-05-04T09:42:00+00:00","status":"UNSUBMITTED","taskId":42,"taskName":"string","time":"string"}'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
{
"clientId": 42,
"clientName": "string",
"date": "string",
"description": "string",
"endTime": "2024-05-04T09:42:00+00:00",
"id": 42,
"isBillable": true,
"isLocked": true,
"orderId": 42,
"orderName": "string",
"startTime": "2024-05-04T09:42:00+00:00",
"status": "UNSUBMITTED",
"taskId": 42,
"taskName": "string",
"time": "string"
}
Response examples (200)
{
"data": {},
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"data": "string",
"errorCode": "string",
"fieldName": "string",
"isSevere": true
}
]
},
"valid": true
}