Create promotion
documentedCreate a new promotion.
POST /promotionsPromotionsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.thinkific.com/api/public/v1/promotions" \
-X POST \
-H "X-Auth-API-Key: {{THINKIFIC_API_KEY}}" \
-H "X-Auth-Subdomain: {{THINKIFIC_SUBDOMAIN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title": "{{$title}}", "description": "{{$description}}", "start_at": "{{$start_at}}", "end_at": "{{$end_at}}", "discount": {"type": "{{$discount_type}}", "value": {{$discount_value}}}, "applies_to": {"type": "course", "ids": [{{$course_id}}]}, "active": {{$active}}}'