Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
PUT
/api-v1/timesheet
curl \
--request PUT 'https://wyzio.app/api-v1/timesheet' \
--header "Content-Type: application/json" \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42" \
--data '{"description":"string","status":"UNSUBMITTED","isBillable":true,"date":"string","time":"string","clientId":42,"employeeId":42,"orderId":42,"taskId":42}'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42
# Payload
{
"description": "string",
"status": "UNSUBMITTED",
"isBillable": true,
"date": "string",
"time": "string",
"clientId": 42,
"employeeId": 42,
"orderId": 42,
"taskId": 42
}
Response examples (200)
{
"data": {},
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"valid": true
}