Saltar al contenido principal
GET
/
v1
/
maintenance
/
preventiveSchedules
Search preventive maintenance schedules
curl --request GET \
  --url https://api.bold-factory.com/v1/maintenance/preventiveSchedules \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "id": "<string>",
      "name": "<string>",
      "workOrderTemplate": {
        "assetId": "<string>",
        "causeId": "<string>",
        "auxiliaryCauseIds": [
          "<string>"
        ],
        "notes": "<string>"
      },
      "trigger": {
        "kind": "Periodic",
        "periodic": {
          "interval": 123,
          "timezone": "<string>",
          "times": [
            "<string>"
          ],
          "daysOfWeek": [],
          "daysOfMonth": [
            123
          ],
          "lastDayOfMonth": true,
          "monthlyPattern": {},
          "between": {
            "start": "<string>",
            "end": "<string>"
          },
          "startDate": "2023-12-25",
          "endDate": "2023-12-25",
          "skipDates": [
            "2023-12-25"
          ]
        }
      },
      "enabled": true,
      "nextRunAt": "2023-11-07T05:31:56Z",
      "lastRunAt": "2023-11-07T05:31:56Z",
      "runCount": 123,
      "skippedCount": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    }
  ],
  "pageNumber": 123,
  "totalPages": 123,
  "totalCount": 123,
  "pageSize": 123
}

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de consulta

FilterBy
string
SortBy
string
PageNumber
integer<int32>
PageSize
integer<int32>

Respuesta

OK

results
object[]
requerido
pageNumber
integer<int32>
requerido
totalPages
integer<int32>
requerido
totalCount
integer<int32>
requerido
pageSize
integer<int32>
requerido