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/"
}
}
}