Saltar al contenido principal
POST
/
v1
/
maintenance
/
actionDefinitions
Create a new action definition
curl --request POST \
  --url https://api.bold-factory.com/v1/maintenance/actionDefinitions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "externalReference": "<string>",
  "theoreticalMinutes": 123
}
'
{
  "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>"
}

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

application/json
name
string
requerido
externalReference
null | string
theoreticalMinutes
number<double>
type
enum<string>
Opciones disponibles:
Simple,
Boolean,
Number,
Text,
Image,
File

Respuesta

Created

id
string
requerido
externalReference
null | string
requerido
name
string
requerido
type
enum<string>
requerido
Opciones disponibles:
Simple,
Boolean,
Number,
Text,
Image,
File
theoreticalMinutes
number<double>
requerido
deletedAt
null | string<date-time>
requerido
createdAt
string<date-time>
requerido
createdBy
string
requerido
lastModifiedAt
string<date-time>
requerido
lastModifiedBy
string
requerido