@@ -102,7 +102,7 @@ if ($call->succeeded()) {
102102
103103#### Create or update user
104104
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
106106
107107``` php
108108$call = $client->upsertUser([
@@ -112,20 +112,19 @@ $call = $client->upsertUser([
112112
113113 // optional
114114 "properties" => [
115+ "full_name" => "John Doe",
115116 "first_name" => "John",
116117 "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,
122121 ],
123122]);
124123```
125124
126125#### Create or update account
127126
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
129128
130129``` php
131130$call = $client->upsertAccount([
@@ -135,11 +134,10 @@ $call = $client->upsertAccount([
135134 // optional
136135 "properties" => [
137136 "name" => "Acme, Inc",
137+ "mrr" => 399,
138138 "plan" => "Pro",
139- "is_paying_account" => true,
140- "amount_of_users" => 3,
141139 "registered_at" => new \DateTimeImmutable("..."),
142- "this_property_will_be_deleted " => "" ,
140+ "is_paying " => true ,
143141 ],
144142
145143 // optional
0 commit comments