diff --git a/EXAMPLES.md b/EXAMPLES.md index d44b39a..19d603d 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -1734,11 +1734,9 @@ https://docs.crisp.chat/references/rest-api/v1/#invite-a-website-operator var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"; -var verify = { - "email": "julien@crisp.chat", - "role": "member", - "verify": "MySuperSecurePassword" -}; +var email = "julien@crisp.chat"; +var role = "member"; +var verify = "MySuperSecurePassword"; CrispClient.website.inviteWebsiteOperator(websiteID, email, role, verify); diff --git a/README.md b/README.md index 71da8e4..b057054 100644 --- a/README.md +++ b/README.md @@ -2502,11 +2502,9 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._ ```javascript var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"; - var verify = { - "email": "julien@crisp.chat", - "role": "member", - "verify": "MySuperSecurePassword" - }; + var email = "julien@crisp.chat"; + var role = "member"; + var verify = "MySuperSecurePassword"; CrispClient.website.inviteWebsiteOperator(websiteID, email, role, verify); ```