Skip to content

Update index.md #6792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 19, 2024
Merged

Update index.md #6792

merged 3 commits into from
Aug 19, 2024

Conversation

joeynmq
Copy link
Contributor

@joeynmq joeynmq commented Jul 5, 2024

Proposed changes

The customer encountered the 409 Conflict error when sending Identify events to Klaviyo.

Having reviewed our integration code here, we will first attempt to create a new profile in Klaviyo. If the first request returns with a 409 error code, we will then send a second request to update the existing profile with the given profile ID

const profile = await request(`${API_URL}/profiles/`, {
  method: 'POST',
  json: profileData
})

...

if (response?.status === 409) {
   const profile = await request(`${API_URL}/profiles/${id}`, {
      method: 'PATCH',
      json: profileData
   })

Merge timing

ASAP once approved

Related issues (optional)

https://segment.atlassian.net/browse/KCS-1535

@joeynmq joeynmq added the KCS label Jul 5, 2024
@joeynmq joeynmq marked this pull request as ready for review August 18, 2024 11:37
@joeynmq joeynmq requested a review from a team as a code owner August 18, 2024 11:37
@joeynmq joeynmq requested a review from forstisabella August 18, 2024 11:37
forstisabella
forstisabella previously approved these changes Aug 19, 2024
@forstisabella forstisabella merged commit ebfcc24 into develop Aug 19, 2024
2 of 4 checks passed
@forstisabella forstisabella deleted the joeynmq-patch-2 branch August 19, 2024 16:25
Copy link
Contributor

Thank you for your contribution! Your pull request is merged, but may take a day or two to appear on the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants