Skip to content

UpdateContact, boolean attributes are not updating #30

Open
@frellan

Description

@frellan

Hello!

I cannot get boolean attributes to update when using the updateContact endpoint of the ContactsApi ith this SDK.

What value are you supposed to send in the Properties object? I Have tried true, TRUE, 1, Yes and nothing works. It just send 204 like all is okay but nothing happens. Below are the code. Its Kotlin, but its just the same. the user.sharingShopping field is a Boolean type.

val params = UpdateContact().apply {
    attributes = Properties().apply {
        setProperty("SHARING_SHOPPING", user.sharingShopping.toString())
    }
}
apiInstance.updateContact(user.userEmail, params)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions