Sign in

Create goal

documented

Create a new goal in the Cascade instance.

POST /api/v2/goalsGoalsno implementation yet0 runs
No 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://{{$cascade_instance}}.executestrategy.net/api/v2/goals" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-Api-Key: {{CASCADE_API_KEY}}" \
  -d '{"goal": {"action": "{{$action}}", "details": "{{$details}}", "weight_id": {{$weight_id}}, "start_time": "{{$start_time}}", "end_time": "{{$end_time}}", "role_id": {{$role_id}}, "creator_id": {{$creator_id}}, "initial": {{$initial}}, "status": "{{$status}}", "completion_criteria": "{{$completion_criteria}}", "target": {{$target}}, "target_flow": "{{$target_flow}}", "progress": {{$progress}}, "unit_id": {{$unit_id}}, "tracking_type": "{{$tracking_type}}", "custom_attributes": {"CUSTOM_FIELD_A": "{{$custom_value_a}}", "CUSTOM_FIELD_B": "{{$custom_value_b}}"}}}'
Create goal · cascade · OpenIntegrations