Update an organization
PUT {{baseUrl}}/organizations/:id
Updates the properties of an organization.
Request Body
{"name"=>"<string>", "owner_id"=>"<integer>", "label"=>"<integer>", "label_ids"=>["<integer>", "<integer>"], "visible_to"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":true,"data":{"id":1,"company_id":77,"owner_id":{"id":10,"name":"Will Smith","email":"will.smith@pipedrive.com","has_pic":0,"pic_hash":"2611ace8ac6a3afe2f69ed56f9e08c6b","active_flag":true,"value":10},"name":"Bolt","open_deals_count":1,"related_open_deals_count":2,"closed_deals_count":3,"related_closed_deals_count":1,"email_messages_count":2,"people_count":1,"activities_count":2,"done_activities_count":1,"undone_activities_count":0,"files_count":0,"notes_count":0,"followers_count":1,"won_deals_count":0,"related_won_deals_count":0,"lost_deals_count":0,"related_lost_deals_count":0,"active_flag":true,"picture_id":{"item_type":"person","item_id":25,"active_flag":true,"add_time":"2020-09-08 08:17:52","update_time":"0000-00-00 00:00:00","added_by_user_id":967055,"pictures":{"128":"https://pipedrive-profile-pics.s3.example.com/f8893852574273f2747bf6ef09d11cf14ac8f269_128.jpg","512":"https://pipedrive-profile-pics.s3.example.com/f8893852574273f2747bf6ef09d11cfb2ac8f269_512.jpg"},"value":101},"country_code":null,"first_char":"b","update_time":"2020-09-08 12:14:11","add_time":"2020-02-25 10:04:08","visible_to":"3","next_activity_date":"2019-11-29","next_activity_time":"11:30:00","next_activity_id":128,"last_activity_id":34,"last_activity_date":"2019-11-28","label":7,"label_ids":[7,8],"address":"Mustamäe tee 3a, 10615 Tallinn","address_subpremise":"","address_street_number":"3a","address_route":"Mustamäe tee","address_sublocality":"Kristiine","address_locality":"Tallinn","address_admin_area_level_1":"Harju maakond","address_admin_area_level_2":"","address_country":"Estonia","address_postal_code":"10616","address_formatted_address":"Mustamäe tee 3a, 10616 Tallinn, Estonia","owner_name":"John Doe","cc_email":"org@pipedrivemail.com"},"related_objects":{"organization":{"1":{"id":1,"name":"Org Name","people_count":1,"owner_id":123,"address":"Mustamäe tee 3a, 10615 Tallinn","active_flag":true,"cc_email":"org@pipedrivemail.com"}},"user":{"123":{"id":123,"name":"Jane Doe","email":"jane@pipedrive.com","has_pic":1,"pic_hash":"2611ace8ac6a3afe2f69ed56f9e08c6b","active_flag":true}},"picture":{"1":{"id":1,"item_type":"person","item_id":25,"active_flag":true,"add_time":"2020-09-08 08:17:52","update_time":"0000-00-00 00:00:00","added_by_user_id":967055,"pictures":{"128":"https://pipedrive-profile-pics.s3.example.com/f8893852574273f2747bf6ef09d11cfb4ac8f269_128.jpg","512":"https://pipedrive-profile-pics.s3.example.com/f8893852574273f2747bf6ef09d11cfb4ac8f269_512.jpg"}}}}}