Saltar al contenido principal
POST
/
v1
/
config
/
contexts
/
{contextId}
/
schedules
Create a schedule
curl --request POST \
  --url https://matcher.sandbox.lerian.net/v1/config/contexts/{contextId}/schedules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cronExpression": "0 0 * * *",
  "enabled": true
}
'
{
  "id": "019c96a0-2b20-7123-9a1b-2c3d4e5f6a7b",
  "contextId": "019c96a0-2a10-7dfe-b5c1-8a1b2c3d4e5f",
  "cronExpression": "0 0 * * *",
  "enabled": true,
  "lastRunAt": "2025-01-15T10:30:00Z",
  "nextRunAt": "2025-01-16T00:00:00Z",
  "createdAt": "2025-01-15T10:30:00Z",
  "updatedAt": "2025-01-15T10:30:00Z"
}

Autorizaciones

Authorization
string
header
requerido

Autenticación con token Bearer (formato: "Bearer {token}")

Encabezados

X-Request-Id
string

A unique identifier for tracing the request across services.

Parámetros de ruta

contextId
string
requerido

The unique identifier of the reconciliation context.

Cuerpo

application/json

Schedule details

Payload for creating a reconciliation schedule

cronExpression
string
requerido

Cron expression defining the schedule frequency

Required string length: 1 - 100
Ejemplo:

"0 0 * * *"

enabled
boolean

Whether the schedule should be active immediately

Ejemplo:

true

Respuesta

Schedule created

Cron-based reconciliation schedule

id
string<uuid>

Unique identifier for the schedule

Ejemplo:

"019c96a0-2b20-7123-9a1b-2c3d4e5f6a7b"

contextId
string<uuid>

Context this schedule belongs to

Ejemplo:

"019c96a0-2a10-7dfe-b5c1-8a1b2c3d4e5f"

cronExpression
string

Cron expression defining the schedule

Maximum string length: 100
Ejemplo:

"0 0 * * *"

enabled
boolean

Whether the schedule is active

Ejemplo:

true

lastRunAt
string<date-time>

Last successful run time in RFC 3339 format

Ejemplo:

"2025-01-15T10:30:00Z"

nextRunAt
string<date-time>

Next scheduled run time in RFC 3339 format

Ejemplo:

"2025-01-16T00:00:00Z"

createdAt
string<date-time>

Creation timestamp in RFC 3339 format

Ejemplo:

"2025-01-15T10:30:00Z"

updatedAt
string<date-time>

Last update timestamp in RFC 3339 format

Ejemplo:

"2025-01-15T10:30:00Z"