Saltar al contenido principal
POST
/
v1
/
maintenance
/
workOrders
/
{workOrderReference}
/
timeEntries
Register a new time entry
curl --request POST \
  --url https://api.bold-factory.com/v1/maintenance/workOrders/{workOrderReference}/timeEntries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "employeeReference": "<string>",
  "startedAt": "2023-11-07T05:31:56Z",
  "finishedAt": "2023-11-07T05:31:56Z"
}
'
{
  "id": "<string>",
  "workOrderId": "<string>",
  "employeeId": "<string>",
  "employee": {
    "id": "<string>",
    "externalReference": "<string>",
    "active": true,
    "fullName": "<string>",
    "code": "<string>"
  },
  "startedAt": "2023-11-07T05:31:56Z",
  "finishedAt": "2023-11-07T05:31:56Z",
  "totalMinutes": 123
}

Autorizaciones

Authorization
string
header
requerido

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Parámetros de ruta

workOrderReference
string
requerido

Cuerpo

application/json
employeeReference
string
requerido
startedAt
null | string<date-time>
finishedAt
null | string<date-time>

Respuesta

Created

id
string
requerido
workOrderId
string
requerido
employeeId
string
requerido
employee
object
requerido
startedAt
string<date-time>
requerido
finishedAt
null | string<date-time>
requerido
totalMinutes
number<double>
requerido