I have a couple of custom attributes that are already defined from the UI. Now, when I create a user using POST /users api, I am trying to also pass the custom attributes list along with other standard attributes. It is giving me a success how ever, only standard attributes are set and custom attributes are being ignored. Is this an expected functionality or am I doing something wrong here?
{
“action”: “create”,
“user_info”: {
“email”: “t.test@corp.primerica.com”,
“first_name”: “t”,
“last_name”: “test”,
“display_name”: “t Test”,
“type”: 2
},
“custom_attributes”: [
{
“key”: “cbf_{0}&&&&cbf_7vdvdz4fsiksjjacz9k9ra”,
“name”: “UserId”,
“value”: “XX111”
}
]
}
I also tried creating the user first and then applying a PATCH to add the values for custom attributes and this works. But this approach will be two API calls.