Access Control - Users
UsersController_create
const url = 'https://api.inspow.tech/api/v1/access-control/users';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"test_email@inspow.com","password":"Password1!","firstName":"John","lastName":"John","profilePicture":"https://cdn.inspow.com/users/avatar.jpg","mobile":"+1234567890","identificationType":"CC","identification":"1234567890","address":"Calle 123 #45-67, Bogotá","bio":"Hey, I\'m a product designer specialized in UI/UX...","social":{"twitter":"https://twitter.com/Shalt0ni","instagram":"https://instagram.com/shaltoni","linkedin":"https://www.linkedin.com/in/aymanshaltoni/"},"defaultColor":"bg-blue-500","roles":["645cc3d3f8a9c9a2b88a22c1","645cc3d3f8a9c9a2b88a22c2"],"createdBy":"645cc3d3f8a9c9a2b88a22c4","updatedBy":"645cc3d3f8a9c9a2b88a22c5","tenant_id":"645cc3d3f8a9c9a2b88a22c6"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.inspow.tech/api/v1/access-control/users \ --header 'Content-Type: application/json' \ --data '{ "email": "test_email@inspow.com", "password": "Password1!", "firstName": "John", "lastName": "John", "profilePicture": "https://cdn.inspow.com/users/avatar.jpg", "mobile": "+1234567890", "identificationType": "CC", "identification": "1234567890", "address": "Calle 123 #45-67, Bogotá", "bio": "Hey, I'\''m a product designer specialized in UI/UX...", "social": { "twitter": "https://twitter.com/Shalt0ni", "instagram": "https://instagram.com/shaltoni", "linkedin": "https://www.linkedin.com/in/aymanshaltoni/" }, "defaultColor": "bg-blue-500", "roles": [ "645cc3d3f8a9c9a2b88a22c1", "645cc3d3f8a9c9a2b88a22c2" ], "createdBy": "645cc3d3f8a9c9a2b88a22c4", "updatedBy": "645cc3d3f8a9c9a2b88a22c5", "tenant_id": "645cc3d3f8a9c9a2b88a22c6" }'Request Body required
Sección titulada «Request Body required »object
The email address of the user.
Example
test_email@inspow.comThe user password.
Example
Password1!The first name of the user.
Example
JohnThe last name of the user.
Example
JohnThe profile picture URL.
Example
https://cdn.inspow.com/users/avatar.jpgThe mobile number of the user.
Example
+1234567890The type of identification document.
Example
CCThe identification document number.
Example
1234567890The address of the user.
Example
Calle 123 #45-67, BogotáShort biography of the user.
Example
Hey, I'm a product designer specialized in UI/UX...Social media links of the user.
object
Example
{ "twitter": "https://twitter.com/Shalt0ni", "instagram": "https://instagram.com/shaltoni", "linkedin": "https://www.linkedin.com/in/aymanshaltoni/"}The default color associated with the user.
Example
bg-blue-500An array of role IDs assigned to the user.
Example
[ "645cc3d3f8a9c9a2b88a22c1", "645cc3d3f8a9c9a2b88a22c2"]The ID of the user who created this record.
Example
645cc3d3f8a9c9a2b88a22c4The ID of the user who last updated this record.
Example
645cc3d3f8a9c9a2b88a22c5The ID of the tenant this user belongs to. Required for admin creation.
Example
645cc3d3f8a9c9a2b88a22c6