Skip to content

Commit ef936ff

Browse files
authored
Merge pull request #122 from escopecz/overwriteWithBlank-for-batch
Adding info about overwriteWithBlank for batch endpoint
2 parents fc5a70d + 9579b91 commit ef936ff

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/rest_api/contacts.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ Create Batch Contact
475475
'ipAddress' => $_SERVER['REMOTE_ADDR']
476476
),
477477
array(
478-
'firstname' => 'Rudolf',
478+
'firstname' => 'Rudolf',
479479
'lastname' => 'Große',
480480
'email' => '[email protected]',
481481
'ipAddress' => $_SERVER['REMOTE_ADDR']
@@ -604,15 +604,18 @@ Edit Batch Contact
604604
'id' => 1,
605605
'firstname' => 'Jim',
606606
'lastname' => 'Contact',
607+
'title' => '', // This will be ignored because overwriteWithBlank is false by default
607608
'email' => '[email protected]',
608609
'ipAddress' => $_SERVER['REMOTE_ADDR']
609610
],
610611
[
611-
'id' => 1,
612-
'firstname' => 'Ashish',
613-
'lastname' => 'Wallach',
614-
'email' => '[email protected]',
615-
'ipAddress' => $_SERVER['REMOTE_ADDR']
612+
'overwriteWithBlank' => true, // This flag will allow you to overwrite any field with a blank value
613+
'id' => 2,
614+
'firstname' => 'Ashish',
615+
'lastname' => 'Wallach',
616+
'title' => '', // This will set the title to blank because overwriteWithBlank is true
617+
'email' => '[email protected]',
618+
'ipAddress' => $_SERVER['REMOTE_ADDR']
616619
]
617620
];
618621

0 commit comments

Comments
 (0)