Skip to main content
Solved

Issue with Create and update custom properties for profile


Forum|alt.badge.img

trying to create profile with custom properties using api v2024-02-15

Profile is created but properties has not include in the profile creation.

For example for post request and return
POST https://a.klaviyo.com/api/profiles/

Request:

{

  "data": {

    "type": "profile",

    "attributes": {

      "email": "ptctech@gmail.com",

      "phone_number":"+61431111232",

      "first_name": "Peter123",

      "last_name": "Chai"

    },

"properties": {

        "membership": "Gold"

      }

    }

}

Return:

{

    "data": {

        "type": "profile",

        "id": "01HWVVVHRM7YE7CD6921F0HATB",

        "attributes": {

            "email": "ptctech@gmail.com",

            "phone_number": "+61431111232",

            "external_id": null,

            "anonymous_id": null,

            "first_name": "Peter123",

            "last_name": "Chai",

            "organization": null,

            "title": null,

            "image": null,

            "created": null,

            "updated": null,

            "last_event_date": null,

            "location": {

                "longitude": null,

                "country": null,

                "city": null,

                "address2": null,

                "region": null,

                "latitude": null,

                "zip": null,

                "address1": null,

                "timezone": null,

                "ip": null

            },

            "properties": {}

        },

        "relationships": {

            "lists": {

                "links": {

                    "self": "https://a.klaviyo.com/api/profiles/01HWVVVHRM7YE7CD6921F0HATB/relationships/lists/",

                    "related": "https://a.klaviyo.com/api/profiles/01HWVVVHRM7YE7CD6921F0HATB/lists/"

                }

            },

            "segments": {

                "links": {

                    "self": "https://a.klaviyo.com/api/profiles/01HWVVVHRM7YE7CD6921F0HATB/relationships/segments/",

                    "related": "https://a.klaviyo.com/api/profiles/01HWVVVHRM7YE7CD6921F0HATB/segments/"

                }

            }

        },

        "links": {

            "self": "https://a.klaviyo.com/api/profiles/01HWVVVHRM7YE7CD6921F0HATB/"

        }

    }

}

Best answer by Brian Turcotte

Hey @tobywooby!

My apologies for the delay here. The post that @MaxT referenced has been answered by one of our wonderful Lead PMs, and you can find the answer to this issue there:

 

 

Best,

Brian

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

  • Contributor I
  • 2 replies
  • May 2, 2024

Hi,

I’m having the exact same problem, I’m curious to understand the reason too!

ps.: working with the API revision 2024-02-15


Forum|alt.badge.img+1
  • Contributor I
  • 7 replies
  • May 2, 2024

Me too! I just posted a nearly identical post. I have been banging my head against the wall for two days!!!


  • Contributor I
  • 2 replies
  • May 2, 2024
MaxT wrote:

Me too! I just posted a nearly identical post. I have been banging my head against the wall for two days!!!
​​

Me too, like since 3 days and even tried Custom properties or other things, glad I’m not alone!


Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • June 14, 2024

Hey @tobywooby!

My apologies for the delay here. The post that @MaxT referenced has been answered by one of our wonderful Lead PMs, and you can find the answer to this issue there:

 

 

Best,

Brian