Create users whith custom_attributes

I need to create users with custom attributes that have already been created in user interface.
In other words, in addition to the basic fields that the documentation shows, I can create them with my own additional fields. How could you do it?

{
“action”: “create”,
“user_info”:{
“first_name”: “PABLO”,
“last_name”: “ANDRES”,
“email”: “pablovaldes@email.com”,
“type”: 1,
“password”: “pass2020”
}
}

what is required
{
“action”: “create”,
“user_info”:{
“first_name”: “PABLO”,
“last_name”: “ANDRES”,
“email”: “pablovaldes@email.com”,
“type”: 1,
“password”: “pass2020” ,
“custom_attributes”: [
{

                "name": "SAM",
                "value": "aqui_text_campo_personalizado"
            },
            {
                
                "name": "ROLE",
                "value": "aqui_text_campo_personalizado"
            },
            {
             
                "name": "JORNADA",
                "value": "aqui_text_campo_personalizado"
            },
            {
         
                "name": "SEDE",
               "value": "aqui_text_campo_personalizado"
            },
            {
               
                "name": "RUT",
               "value": "aqui_text_campo_personalizado"
            }
        ]

            }

}

Hi @dte,

You will need to first set the name value you for your custom attributes, and then you can add/update them via API. Let me now if this thread helps:

Thanks,
Will

1 Like

Perfect thanks, effectively first create then update works.

Regards,

Happy I could help, and that’s right @dte :slight_smile:

Best,
Will

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.