Create company
documentedCreate a new company in the account.
POST /api/2.0/companiesSchedulingno 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.agendize.com/api/2.0/scheduling/companies" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{ "name": "{{$name}}", "timeZone": "{{$timeZone}}", "email": "{{$email}}", "phone": "{{$phone}}", "address": { "street": "{{$address_street}}", "otherStreet": "{{$address_otherStreet}}", "zipCode": "{{$address_zipCode}}", "state": "{{$address_state}}", "city": "{{$address_city}}", "country": "{{$address_country}}" }, "geolocation": { "lat": {{$geolocation_lat}}, "lng": {{$geolocation_lng}} }, "picture": { "url": "{{$picture_url}}", "mimeType": "{{$picture_mimeType}}" }, "websiteLink": "{{$websiteLink}}", "currency": "{{$currency}}", "externalId": "{{$externalId}}", "workingHours": [ { "day": "monday", "hours": [ { "start": "09:00", "end": "17:00" } ] } ] }'