Saltar al contenido principal
POST
/
v1
/
maintenance
/
causes
/
{causeReference}
/
actions
Plan an action for a cause
curl --request POST \
  --url https://api.bold-factory.com/v1/maintenance/causes/{causeReference}/actions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "actionDefinitionReference": "<string>",
  "notes": "<string>"
}
'
{
  "id": "<string>",
  "actionDefinitionId": "<string>",
  "actionDefinition": {
    "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>"
  },
  "notes": "<string>"
}

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de ruta

causeReference
string
requerido

Cuerpo

application/json
actionDefinitionReference
string
requerido
notes
null | string

Respuesta

Created

id
string
requerido
actionDefinitionId
string
requerido
actionDefinition
object
requerido
notes
string
requerido