From e5bcf2fde35af0289479516671bfe42febeba78e Mon Sep 17 00:00:00 2001 From: Davey Shafik Date: Wed, 12 Jan 2022 18:24:54 -0800 Subject: [PATCH] Contact attribute for type is `role` Fixed a small typo in the create contact call, the attribute for setting the type is `role`, not `type` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3fd8ad3..640a6f3 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ This resource is only available in API Versions 2.0 and above $client->contacts->create([ 'custom_attributes' => ['nickname' => 'Teddy'], 'email' => 'test@example.com', - 'type' => 'user', + 'role' => 'user', ]); /** Update a contact */