I am trying to use Update Profile API using Axios.
I am not sure what is wrong, the data is not updating.
await axios({
url: `https://a.klaviyo.com/api/profiles/${id}/`,
method: "PATCH",
headers: {
accept: "application/json",
revision: "2022-10-17",
"content-type": "application/json",
Authorization: `Klaviyo-API-Key xxxxx`,
},
body: JSON.stringify({
data: {
type: "profile",
attributes: {
properties: { "Plan Codes": "123" },
phone_number: "9876543210",
},
id: id,
},
}),
})
Under data, for the parameter id which id needs to be added?