Add an activity

POST {{baseUrl}}/activities

Adds a new activity. Includes more_activities_scheduled_in_context property in response's additional_data which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). For more information, see the tutorial for adding an activity.

Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync

Request Body

{"due_date"=>"<date>", "due_time"=>"<string>", "duration"=>"<string>", "deal_id"=>"<integer>", "lead_id"=>"<uuid>", "person_id"=>"<integer>", "project_id"=>"<integer>", "org_id"=>"<integer>", "location"=>"<string>", "public_description"=>"<string>", "note"=>"<string>", "subject"=>"<string>", "type"=>"<string>", "user_id"=>"<integer>", "participants"=>["<object>", "<object>"], "busy_flag"=>"<boolean>", "attendees"=>["<object>", "<object>"], "done"=>"<number>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:8,&quot;company_id&quot;:22122,&quot;user_id&quot;:1234,&quot;done&quot;:false,&quot;type&quot;:&quot;deadline&quot;,&quot;reference_type&quot;:&quot;scheduler-service&quot;,&quot;reference_id&quot;:7,&quot;conference_meeting_client&quot;:&quot;871b8bc88d3a1202&quot;,&quot;conference_meeting_url&quot;:&quot;https://pipedrive.zoom.us/link&quot;,&quot;conference_meeting_id&quot;:&quot;17058746701&quot;,&quot;due_date&quot;:&quot;2020-06-09&quot;,&quot;due_time&quot;:&quot;10:00&quot;,&quot;duration&quot;:&quot;01:00&quot;,&quot;busy_flag&quot;:true,&quot;add_time&quot;:&quot;2020-06-08 12:37:56&quot;,&quot;marked_as_done_time&quot;:&quot;2020-08-08 08:08:38&quot;,&quot;last_notification_time&quot;:&quot;2020-08-08 12:37:56&quot;,&quot;last_notification_user_id&quot;:7655,&quot;notification_language_id&quot;:1,&quot;subject&quot;:&quot;Deadline&quot;,&quot;public_description&quot;:&quot;This is a description&quot;,&quot;calendar_sync_include_context&quot;:&quot;&quot;,&quot;location&quot;:&quot;Mustamäe tee 3, Tallinn, Estonia&quot;,&quot;org_id&quot;:5,&quot;person_id&quot;:1101,&quot;deal_id&quot;:300,&quot;lead_id&quot;:&quot;46c3b0e1-db35-59ca-1828-4817378dff71&quot;,&quot;project_id&quot;:null,&quot;active_flag&quot;:true,&quot;update_time&quot;:&quot;2020-08-08 12:37:56&quot;,&quot;update_user_id&quot;:5596,&quot;gcal_event_id&quot;:&quot;&quot;,&quot;google_calendar_id&quot;:&quot;&quot;,&quot;google_calendar_etag&quot;:&quot;&quot;,&quot;source_timezone&quot;:&quot;&quot;,&quot;rec_rule&quot;:&quot;RRULE:FREQ=WEEKLY;BYDAY=WE&quot;,&quot;rec_rule_extension&quot;:&quot;&quot;,&quot;rec_master_activity_id&quot;:1,&quot;series&quot;:[],&quot;note&quot;:&quot;A note for the activity&quot;,&quot;created_by_user_id&quot;:1234,&quot;location_subpremise&quot;:&quot;&quot;,&quot;location_street_number&quot;:&quot;3&quot;,&quot;location_route&quot;:&quot;Mustamäe tee&quot;,&quot;location_sublocality&quot;:&quot;Kristiine&quot;,&quot;location_locality&quot;:&quot;Tallinn&quot;,&quot;location_admin_area_level_1&quot;:&quot;Harju maakond&quot;,&quot;location_admin_area_level_2&quot;:&quot;&quot;,&quot;location_country&quot;:&quot;Estonia&quot;,&quot;location_postal_code&quot;:&quot;10616&quot;,&quot;location_formatted_address&quot;:&quot;Mustamäe tee 3, 10616 Tallinn, Estonia&quot;,&quot;attendees&quot;:[{&quot;email_address&quot;:&quot;attendee@pipedrivemail.com&quot;,&quot;is_organizer&quot;:0,&quot;name&quot;:&quot;Attendee&quot;,&quot;person_id&quot;:25312,&quot;status&quot;:&quot;noreply&quot;,&quot;user_id&quot;:null}],&quot;participants&quot;:[{&quot;person_id&quot;:17985,&quot;primary_flag&quot;:false},{&quot;person_id&quot;:1101,&quot;primary_flag&quot;:true}],&quot;org_name&quot;:&quot;Organization&quot;,&quot;person_name&quot;:&quot;Person&quot;,&quot;deal_title&quot;:&quot;Deal&quot;,&quot;owner_name&quot;:&quot;Creator&quot;,&quot;person_dropbox_bcc&quot;:&quot;company@pipedrivemail.com&quot;,&quot;deal_dropbox_bcc&quot;:&quot;company+deal300@pipedrivemail.com&quot;,&quot;assigned_to_user_id&quot;:1235,&quot;file&quot;:{&quot;id&quot;:&quot;376892,&quot;,&quot;clean_name&quot;:&quot;Audio 10:55:07.m4a&quot;,&quot;url&quot;:&quot;https://pipedrive-files.s3-eu-west-1.amazonaws.com/Audio-recording.m4a&quot;}},&quot;related_objects&quot;:{&quot;user&quot;:{&quot;1234&quot;:{&quot;id&quot;:1234,&quot;name&quot;:&quot;Creator&quot;,&quot;email&quot;:&quot;john.doe@pipedrive.com&quot;,&quot;has_pic&quot;:false,&quot;pic_hash&quot;:null,&quot;active_flag&quot;:true}},&quot;organization&quot;:{&quot;5&quot;:{&quot;id&quot;:5,&quot;name&quot;:&quot;Organization&quot;,&quot;people_count&quot;:2,&quot;owner_id&quot;:8877,&quot;address&quot;:&quot;Mustamäe tee 3a, 10615 Tallinn&quot;,&quot;cc_email&quot;:&quot;org@pipedrivemail.com&quot;,&quot;active_flag&quot;:true}},&quot;person&quot;:{&quot;1101&quot;:{&quot;id&quot;:1101,&quot;name&quot;:&quot;Person&quot;,&quot;active_flag&quot;:true,&quot;email&quot;:[{&quot;label&quot;:&quot;work&quot;,&quot;value&quot;:&quot;person@pipedrive.com&quot;,&quot;primary&quot;:true}],&quot;phone&quot;:[{&quot;label&quot;:&quot;work&quot;,&quot;value&quot;:&quot;3421787767&quot;,&quot;primary&quot;:true}],&quot;owner_id&quot;:8877}},&quot;deal&quot;:{&quot;300&quot;:{&quot;id&quot;:300,&quot;title&quot;:&quot;Deal&quot;,&quot;status&quot;:&quot;open&quot;,&quot;value&quot;:856,&quot;currency&quot;:&quot;EUR&quot;,&quot;stage_id&quot;:1,&quot;pipeline_id&quot;:1}}},&quot;additional_data&quot;:{&quot;updates_story_id&quot;:2039}}