API V2 Create users

Hi, I am trying to create users in pydio con api 2.
I can create user with this API:
curl -X PUT “https://ftprueba.com/a/user/test” -H “accept: application/json” -H “Content-Type: application/json” -H “Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” -d “{ “Attributes”: {},“Login”:“test”, “Password”: “123456789”, “Uuid”:“DATASOURCE:test”}”
But this way i have not email and name of other data.
I try to put atributtes but when i add it dont create user. In the documentation i can not see what attributes there are.
This is how i try:
curl -X PUT “ht://ftpprueba.com/a/user/test” -H “accept: application/json” -H “Content-Type: application/json” -H “Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxx” -d “{ “Attributes”{“displayName”: “Test1”,“email”: “test1@mail.com”},“Login”:“test”, “Password”: “123456789”, “Uuid”:“DATASOURCE:test”}”
did Someone try something like this?
The next pass is to assing worskapce to this user but I dont start with it.
I want to do a workflow to create users and workspace easty way.
Thanks
Jorge

This finally work with the way i use. I dont have to change anything.
My doubt now is how to assign users to workflow with api 2.
Someone know how to do this?