@@ -229,6 +229,9 @@ curl_wrap("contacts/5722721933590528", null, "DELETE", "application/json");
229
229
230
230
#### 1.4 Update properties of a contact (partial update)
231
231
232
+ - If updating custom field, make sure it should be present in the below link also
233
+ - https://{domain}.agilecrm.com/#custom-fields
234
+
232
235
``` javascript
233
236
234
237
$contact_json = array (
@@ -371,6 +374,9 @@ curl_wrap("contacts/5695414665740288", null, "DELETE", "application/json")
371
374
372
375
#### 2.4 Update properties of a company (partial update)
373
376
377
+ - If updating custom field, make sure it should be present in the below link
378
+ - https://{domain}.agilecrm.com/#custom-fields
379
+
374
380
``` javascript
375
381
$company_json = array (
376
382
" id" => " 5695414665740288" , // It is mandatory filed. Id of company
@@ -440,6 +446,15 @@ $companies = curl_wrap("search?q=Google&page_size=10&type='COMPANY'", null, "GET
440
446
echo $companies;
441
447
```
442
448
449
+ #### 2.8 Get Contacts of a company
450
+
451
+ ``` javascript
452
+
453
+ $contacts = curl_wrap (" contacts/related/5712911708192768?page_size=25" , null , " GET" , " application/json" );
454
+
455
+ echo $contacts;
456
+ ```
457
+
443
458
## 3. Deal (Opportunity)
444
459
445
460
- ** Note** Milestone name is case sensitive. It should be exactly as in your Agile CRM
@@ -485,6 +500,8 @@ curl_wrap("opportunity/5739083074633728", null, "DELETE", "application/json");
485
500
#### 3.4 To update deal (Partial update)
486
501
487
502
- ** Note** No need to send all the data of a deal only the deal values want to update.
503
+ - If updating custom field, make sure it should be present in the below link also
504
+ - https://{domain}.agilecrm.com/#custom-fields
488
505
489
506
``` javascript
490
507
$opportunity_json = array (
0 commit comments