Create an organization relationship
POST {{baseUrl}}/organizationRelationships
Creates and returns an organization relationship.
Request Body
{"type"=>"<string>", "rel_owner_org_id"=>"<integer>", "rel_linked_org_id"=>"<integer>", "org_id"=>"<integer>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":true,"data":{"id":1,"type":"parent","rel_owner_org_id":{"name":"Pipedrive Inc.","people_count":1,"owner_id":925000,"address":"Mustamäe tee 3a, 10615 Tallinn","active_flag":true,"cc_email":"company@pipedrivemail.com","value":1481},"rel_linked_org_id":{"name":"Telia","people_count":2,"owner_id":925000,"address":"USA","active_flag":true,"cc_email":"company@pipedrivemail.com","value":1480},"add_time":"2020-09-22 08:58:28","update_time":"2020-09-22 08:58:28","active_flag":"true"},"related_objects":{"organization":{"1482":{"id":457,"name":"Yandex","people_count":2,"owner_id":9271535,"address":"Mustamäe tee 4b, 10615 Tallinn","active_flag":true,"cc_email":"org@pipedrivemail.com"}}}}