Scheduled Tasks

Update a scheduled task

Changed on

Updates one scheduled task owned by this key's member or service account. Send at least one field. The response does not include runCount. The merged schedule is validated.

patch/automations/v1/{automationId}

Request

  • Base URL
    https://api.langdock.com
  • URL
    https://api.langdock.com/automations/v1/{automationId}
  • Auth
    HTTP bearer

Path parameters

automationIdstring uuid required

Request body

namestring
promptstring
frequency'MANUAL' | 'DAILY' | 'WEEKDAYS' | 'WEEKLY' | 'MONTHLY' | 'SELECTED_WEEKDAYS'
timeOfDaystring nullable

24 hour HH:mm. Omitted keeps the stored value.

dayOfWeekinteger nullable

0 is Sunday and 6 is Saturday. Omitted keeps the stored value.

dayOfMonthinteger nullable

Omitted keeps the stored value.

daysOfWeekinteger[]

Omitted keeps the stored value.

timezonestring nullable

IANA timezone. Omitted keeps the stored value. Empty is stored as UTC on a scheduled frequency.

modelMode'UNSET' | 'EXPLICIT' | 'AUTO'
modelIdstring uuid nullable

Required in this request when modelMode is EXPLICIT.

assistantIdstring uuid nullable
taggedAssistantIdstring uuid nullable
taggedIntegrationIdsstring[]
taggedKnowledgeFolderIdsstring[]
taggedWorkflowIdsstring[]
taggedSkillSlugsstring[]
attachmentIdsstring[]

Response

Scheduled task updated. The automation object does not include runCount.

Changes