Ir al contenido

Access Control - Users

UsersController_update

PATCH
/access-control/users/{id}
curl --request PATCH \
--url https://api.inspow.tech/api/v1/access-control/users/example \
--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" }'
id
required
string
Media type application/json
object
email

The email address of the user.

string format: email
Example
test_email@inspow.com
password

The user password.

string format: password
>= 6 characters <= 50 characters /(?:(?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*/
Example
Password1!
firstName

The first name of the user.

string
>= 1 characters
Example
John
lastName

The last name of the user.

string
>= 1 characters
Example
John
profilePicture

The profile picture URL.

string format: url
Example
https://cdn.inspow.com/users/avatar.jpg
mobile

The mobile number of the user.

string
/^[+]?[0-9]{7,15}$/
Example
+1234567890
identificationType

The type of identification document.

string
Allowed values: CC CE PA TI NIT
Example
CC
identification

The identification document number.

string
Example
1234567890
address

The address of the user.

string
Example
Calle 123 #45-67, Bogotá
bio

Short biography of the user.

string
Example
Hey, I'm a product designer specialized in UI/UX...
social

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/"
}
defaultColor

The default color associated with the user.

string
default: bg-blue-500
Example
bg-blue-500
roles

An array of role IDs assigned to the user.

Array<string>
Example
[
"645cc3d3f8a9c9a2b88a22c1",
"645cc3d3f8a9c9a2b88a22c2"
]
createdBy

The ID of the user who created this record.

MongoId
Example
645cc3d3f8a9c9a2b88a22c4
updatedBy

The ID of the user who last updated this record.

MongoId
Example
645cc3d3f8a9c9a2b88a22c5
tenant_id

The ID of the tenant this user belongs to. Required for admin creation.

string
Example
645cc3d3f8a9c9a2b88a22c6