Create event
documentedCreate a new event.
POST /v1/eventsEventsno 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.crmworkspace.com/v1/events" \
-X POST \
-H "AUTHORIZATION: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title": "{{$title}}", "starts_at": "{{$starts_at}}", "ends_at": "{{$ends_at}}", "repeats": {{$repeats}}, "event_category": {{$event_category}}, "all_day": {{$all_day}}, "location": "{{$location}}", "description": "{{$description}}", "state": "{{$state}}", "visible_to": "{{$visible_to}}", "email_invitees": {{$email_invitees}}, "linked_to": [ {"id": {{$linked_to_id}}, "type": "{{$linked_to_type}}", "name": "{{$linked_to_name}}"} ], "invitees": [ {"id": {{$invitee_id}}, "type": "{{$invitee_type}}", "name": "{{$invitee_name}}"} ], "custom_fields": [ {"id": {{$custom_field_id}}, "name": "{{$custom_field_name}}", "value": "{{$custom_field_value}}", "document_type": "{{$document_type}}", "field_type": "{{$field_type}}"} ] }'"