useUpdateProcessSchedules()
useUpdateProcessSchedules():
Provides an imperative updateProcessSchedules function that:
- Resolves Atom IDs attached to an environment,
- Retrieves all processes for an integration pack instance,
- Constructs a
ProcessSchedulespayload (including aRetrypolicy), - Replaces schedules for every (processId × atomId) combination.
Throws
If required context or parameters are missing, or if any update call fails.
Returns
Hook API with the updater function, request state, and the list of updated schedule objects.
updateProcessSchedules()
updateProcessSchedules: (schedules: Schedule[], environmentId: string, integrationPackInstanceId: string) => Promise<void>
Parameters
Returns
Was this topic helpful?