Create party
documentedCreate a new party.
POST /api/v2/partiesPartiesno 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.capsulecrm.com/api/v2/parties" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"party": {"type": "person", "title": "{{$title}}", "firstName": "{{$firstName}}", "lastName": "{{$lastName}}", "jobTitle": "{{$jobTitle}}", "organisation": {"name": "{{$organisation_name}}"}, "addresses": [ {"type": "Home", "street": "{{$street}}", "city": "{{$city}}", "state": "{{$state}}", "zip": "{{$zip}}", "country": "{{$country}}" } ], "phoneNumbers": [ {"type": "Mobile", "number": "{{$phone}}"} ], "emailAddresses": [ {"type": "Work", "address": "{{$email}}"} ] } }'"}