Saltar al contenido principal
POST
/
v1
/
maintenance
/
workOrders
/
{workOrderReference}
/
actions
Register a new action
curl --request POST \
  --url https://api.bold-factory.com/v1/maintenance/workOrders/{workOrderReference}/actions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "definitionReference": "<string>",
  "notes": "<string>"
}
'
{
  "id": "<string>",
  "workOrderId": "<string>",
  "definitionId": "<string>",
  "definition": {
    "id": "<string>",
    "externalReference": "<string>",
    "name": "<string>",
    "theoreticalMinutes": 123,
    "deletedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "theoreticalMinutes": 123,
  "employeeId": "<string>",
  "employee": {
    "id": "<string>",
    "externalReference": "<string>",
    "active": true,
    "fullName": "<string>",
    "code": "<string>"
  },
  "notes": "<string>",
  "result": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "completedAt": "2023-11-07T05:31:56Z"
}

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
definitionReference
string
requerido
notes
string
requerido

Respuesta

Created

id
string
requerido
workOrderId
string
requerido
definitionId
string
requerido
definition
object
requerido
type
enum<string>
requerido
Opciones disponibles:
Simple,
Boolean,
Number,
Text,
Image,
File
theoreticalMinutes
number<double>
requerido
employeeId
null | string
requerido
employee
object
requerido
notes
string
requerido
result
null | string
requerido
createdAt
string<date-time>
requerido
completedAt
null | string<date-time>
requerido
status
enum<string>
requerido
Opciones disponibles:
Planned,
Completed