Skip to content

Commit c4a8281

Browse files
authored
Merge pull request #2798 from appwrite/copilot/update-enterprise-contact-us-endpoint
Update enterprise contact form to new growth API endpoint
2 parents 0aaa2bd + 3f45457 commit c4a8281

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/routes/contact-us/enterprise/+page.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@
3131
3232
const cloudEmail = loggedIn && $user?.email ? $user.email : undefined;
3333
34-
const response = await fetch(`${PUBLIC_GROWTH_ENDPOINT}/feedback/sales/enterprise`, {
34+
const response = await fetch(`${PUBLIC_GROWTH_ENDPOINT}/conversations/enterprises`, {
3535
method: 'POST',
3636
headers: {
3737
'Content-Type': 'application/json'
3838
},
3939
body: JSON.stringify({
40+
firstName,
41+
lastName,
4042
email,
41-
subject: companyName,
42-
cloudEmail,
43+
message: useCase,
4344
companyName,
4445
companySize,
4546
companyWebsite,
46-
firstName,
47-
lastName,
48-
message: useCase,
47+
cloudEmail,
48+
platform: 'appwrite',
4949
...getReferrerAndUtmSource()
5050
})
5151
});

0 commit comments

Comments
 (0)