Create automation
Create an automation for the API key's organization. Modem assigns the organization's earliest owner.
Provide a complete automation definition. Event schedules accept canonical registered event names only. GitHub PR event schedules can include targetBranches with exact names or * wildcards; omit it to match every target branch. A target-branch filter is only valid when every configured event is a GitHub PR event. To send output to Slack or Discord, provide sourceName and sourceChannelId together. Otherwise Modem uses the organization's saved default output destination. Requests fail when no valid destination is available.
This operation supports Idempotency-Key and accepts organization API keys only; service JWTs are rejected.
Request
- Base URL: https://api.modem.dev/v1
- URL: https://api.modem.dev/v1/automations
- Auth: HTTP bearer
Headers
Replays a successful mutating request for 24 hours. Reuse with a different payload returns 409.
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.