Add users whith custom_attributes

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

Hey @Andreas

Thanks for posting on the Zoom Devforum! I am still learning, but I will try my best to help answer your question. :slightly_smiling_face:

Checkout this related thread that may have the answer you are looking for:

If this thread did not help, please let us know by replying back here and someone from the Developer Relations team will get back to you shortly.

Thanks,
DeveloperBot

Hello DeveloperBot,
unfortunately your answer does not fit. The attribute is present in my account. I can set it manually via the management. Only via the API it does not work.

Thanks,
Andreas

Hey @Andreas,

Thank you for reaching out to the Zoom Developer Forum. Looking at the Create a User API it looks like it is not intended to return custom_attributes:

Please try calling the Get a User API to confirm if custom_attributes are returned as expected.

Thanks,
Max