AlphaAlpha Docs
API ReferenceHr time entry

Approve time entries

Approves one or more submitted time entries

POST
/hr/time-entries/approve
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

ids*array<string>

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/hr/time-entries/approve" \  -H "Content-Type: application/json" \  -d '{    "ids": [      "string"    ]  }'
[
  {
    "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"
}