Create activity definition
documentedCreate a custom activity definition in Ortto.
POST /v1/definitions/activity/createActivityno 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.ap3api.com/v1/definitions/activity/create" \
-X POST \
-H "X-Api-Key: {{AUTOPILOTHQ_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$name}}", "icon_id": "{{$icon_id}}", "track_conversion_value": {{$track_conversion_value}}, "touch": {{$touch}}, "filterable": true, "visible_in_feeds": true, "display_style": {"type": "activity_attribute", "title": "{{$title_display}}", "attribute_name": "{{$attribute_name}}", "attribute_field_id": "{{$attribute_field_id}}"}, "attributes": [ {"name": "{{$attr1_name}}", "display_type": "{{$attr1_type}}"}, {"name": "{{$attr2_name}}", "display_type": "{{$attr2_type}}", "field_id": "{{$attr2_field_id}}"} ] }'"}