@@ -102,7 +102,7 @@ if ($call->succeeded()) {
102
102
103
103
#### Create or update user
104
104
105
- _ Note: when sending an empty value ( ` "" ` ) as value for a property, the property will be deleted. _
105
+ Note: ` full_name ` , ` first_name ` , ` last_name ` , ` phone ` and ` registered_at ` are default properties
106
106
107
107
``` php
108
108
$call = $client->upsertUser([
@@ -112,20 +112,19 @@ $call = $client->upsertUser([
112
112
113
113
// optional
114
114
"properties" => [
115
+ "full_name" => "John Doe",
115
116
"first_name" => "John",
116
117
"last_name" => "Doe",
117
- "plan" => "Pro",
118
- "age" => 26,
119
- "is_developer" => true,
120
- "registered_at" => new DateTimeImmutable("..."),
121
- "this_property_will_be_deleted" => "",
118
+ "phone" => "123",
119
+ "registered_at" => new \DateTimeImmutable("..."),
120
+ "is_admin" => true,
122
121
],
123
122
]);
124
123
```
125
124
126
125
#### Create or update account
127
126
128
- _ Note: when sending an empty value ( ` "" ` ) as value for a property, the property will be deleted. _
127
+ Note: ` name ` , ` mrr ` , ` plan ` and ` registered_at ` are default properties
129
128
130
129
``` php
131
130
$call = $client->upsertAccount([
@@ -135,11 +134,10 @@ $call = $client->upsertAccount([
135
134
// optional
136
135
"properties" => [
137
136
"name" => "Acme, Inc",
137
+ "mrr" => 399,
138
138
"plan" => "Pro",
139
- "is_paying_account" => true,
140
- "amount_of_users" => 3,
141
139
"registered_at" => new \DateTimeImmutable("..."),
142
- "this_property_will_be_deleted " => "" ,
140
+ "is_paying " => true ,
143
141
],
144
142
145
143
// optional
0 commit comments