Access Control - Auth
AuthController_updateMe
PATCH
/access-control/auth/user/me
const url = 'https://api.inspow.tech/api/v1/access-control/auth/user/me';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"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 PATCH \ --url https://api.inspow.tech/api/v1/access-control/auth/user/me \ --header 'Content-Type: application/json' \ --data '{ "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 » Media type application/json
object
profilePicture
The profile picture URL.
string format: url
Example
https://cdn.inspow.com/users/avatar.jpg mobile
The mobile number of the user.
string
Example
+1234567890 identificationType
The type of identification document.
string
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
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