Create object/group
documentedCreate a non-person object (group) and relate it to people.
POST /v1/groupObjectsno 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://cdp.customer.io/v1/group" \
-X POST \
-u "{{CUSTOMER_API_KEY}}:" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"userId": "{{$user_id}}", "groupId": "{{$group_id}}", "traits": {"object_type_id": "{{$object_type_id}}", "relationshipAttributes": {"role": "{{$role}}"}, "name": "{{$group_name}}", "industry": "{{$industry}}", "plan": "{{$plan}}", "total_billed": {{$total_billed}}}, "integrations": {"All": {{$integrations_all}}, "Salesforce": {{$integrations_salesforce}}, "Mixpanel": {{$integrations_mixpanel}}}, "messageId": "{{$message_id}}", "sentAt": "{{$sent_at}}", "originalTimestamp": "{{$original_timestamp}}", "timestamp": "{{$timestamp}}", "context": {"ip": "{{$ip}}", "locale": "{{$locale}}", "userAgent": "{{$user_agent}}", "campaign": {"name": "{{$campaign_name}}", "source": "{{$campaign_source}}", "medium": "{{$campaign_medium}}", "term": "{{$campaign_term}}", "content": "{{$campaign_content}}"}, "page": {"name": "{{$page_name}}", "path": "{{$page_path}}", "referrer": "{{$page_referrer}}", "search": "{{$page_search}}", "title": "{{$page_title}}", "url": "{{$page_url}}", "keywords": ["{{$page_keywords}}"]}}}'