AlphaAlpha Docs
API ReferenceHr time entry

Update a time entry

Updates an existing time entry

PATCH
/hr/time-entries/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/hr/time-entries/string" \  -H "Content-Type: application/json" \  -d '{    "date": "2019-08-24",    "employeeId": "string",    "hours": 0.1  }'
{
  "approvedAt": "2019-08-24T14:15:22Z",
  "approvedBy": "string",
  "billable": true,
  "billingRate": 0.1,
  "clientId": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "date": "2019-08-24",
  "description": "string",
  "employee": {
    "avatar": "string",
    "department": "string",
    "email": "string",
    "fullName": "string",
    "id": "string",
    "jobTitle": "string"
  },
  "employeeId": "string",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "hours": 0.1,
  "id": "string",
  "opportunityId": "string",
  "projectId": "string",
  "rejectionReason": "string",
  "startTime": "string",
  "status": "DRAFT",
  "task": {
    "id": "string",
    "name": "string"
  },
  "taskId": "string",
  "tenantId": "string",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}