Hello,
What is the correct syntax for creating a new user with attributes?
I have tried the following, unfortunately it does not work:
$post = ‘{
“action”: “create”,
“user_info”: {
“email”: “terry@jones.com”,
“type”: 3,
“first_name”: “Terry”,
“last_name”: “Jones”,
“custom_attributes”: [
{
“key”:“cbf_xhd0rqm5ieq4rzw”,
“name”: “Info-test”,
“value”: “12345”
}
]
}
}’;
The answer is:
{“id":“VPfLQFyKZq2f9wQ”,“first_name”:“Terry”,“last_name”:“Jones”,“email”:"Terry@Jones.com”,“type”:3}
Unfortunately, the attribute is not set .
Thank you for the help