Skip to content

Commit 1292df7

Browse files
committed
Added steps to remove company from user
1 parent 38fee00 commit 1292df7

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,18 @@ $client->users->create([
6868
"email" => "[email protected]",
6969
"companies" => [
7070
[
71-
"id" => "3"
71+
"company_id" => "3"
72+
]
73+
]
74+
]);
75+
76+
// Remove companies from a user
77+
$client->users->create([
78+
"email" => "[email protected]",
79+
"companies" => [
80+
[
81+
"company_id" => "3",
82+
"remove" => true
7283
]
7384
]
7485
]);
@@ -154,7 +165,7 @@ $client->events->getEvents(["email" => "[email protected]"]);
154165
```php
155166
// Create a company
156167
$client->companies->create([
157-
"name" => "foocorp", "id" => "3"
168+
"name" => "foocorp", "company_id" => "3"
158169
]);
159170

160171
// List Companies

0 commit comments

Comments
 (0)