Relations

relation

Fields

Field Type Description
id Integer Entry id
parent_acc_id Integer id of parent account
child_acc_id Integer id of child account
relation_name String title of relation (position etc)
type Integer 1 - employee
2 - company

Examples

create:

curl -H "Content-Type: application/json" -X POST -d {"parent_acc_id":1,"child_acc_id":1} https://company.flowlu.ru/api/v1/module/crm/relation/create/?api_key=<api_key>

update:

curl -H "Content-Type: application/json" -X POST -d {"parent_acc_id":1,"child_acc_id":1} https://company.flowlu.ru/api/v1/module/crm/relation/update/1?api_key=<api_key>

get:

curl -X GET https://company.flowlu.ru/api/v1/module/crm/relation/get/1?api_key=<api_key>

delete:

curl -X GET https://company.flowlu.ru/api/v1/module/crm/relation/delete/1?api_key=<api_key>

list:

curl -X GET https://company.flowlu.ru/api/v1/module/crm/relation/list?search=flowlu&page=1&api_key=<api_key>