Create contact aggregate
documentedInsert a contact aggregate (contact + related company/manager).
POST /ContactAggregateContactsno 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.saasu.com/ContactAggregate?FileId={{$file_id}}&wsAccessKey={{$ws_access_key}}" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"Id": {{$id}},
"Salutation": "{{$salutation}}",
"GivenName": "{{$given_name}}",
"MiddleInitials": "{{$middle_initials}}",
"FamilyName": "{{$family_name}}",
"Company": {
"Id": {{$company_id}},
"Name": "{{$company_name}}",
"Abn": "{{$company_abn}}",
"TradingName": "{{$company_trading_name}}",
"EmailAddress": "{{$company_email}}"
},
"PositionTitle": "{{$position_title}}",
"PrimaryPhone": "{{$primary_phone}}",
"MobilePhone": "{{$mobile_phone}}",
"HomePhone": "{{$home_phone}}",
"Fax": "{{$fax}}",
"EmailAddress": "{{$contact_email}}",
"ContactId": "{{$contact_id}}",
"ContactManager": {
"Id": {{$manager_id}},
"Salutation": "{{$manager_salutation}}",
"GivenName": "{{$manager_given_name}}",
"MiddleInitials": "{{$manager_middle_initials}}",
"FamilyName": "{{$manager_family_name}}",
"PositionTitle": "{{$manager_position_title}}"
},
"IsPartner": {{$is_partner}},
"IsCustomer": {{$is_customer}},
"IsSupplier": {{$is_supplier}},
"IsContractor": {{$is_contractor}},
"PostalAddress": {
"Street": "{{$postal_street}}",
"City": "{{$postal_city}}",
"Region": "{{$postal_region}}",
"PostalCode": "{{$postal_code}}",
"Country": "{{$postal_country}}"
},
"_links": []
}'