Create schedule for surface
Create a new schedule (one-time or recurring) for a schedule-type surface.
Authentication
AuthorizationBearer
API key or Clerk session token
Path parameters
id
surfaceId
Request
This endpoint expects an object.
flowId
triggerType
Allowed values:
cron
enabled
executionOptions
recordFilter
recordIds
recordType
runAt
timezone
Response
Schedule created
agentId
createdAt
cron
enabled
executionOptions
flowId
id
inputs
lastRunAt
name
nextRunAt
organizationId
productSurfaceId
recordIds
recordType
runAt
timezone
triggerType
updatedAt
userId
messages
recordFilter
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error