v1
latestOpenAPI 3.1.02026-07-14159142161.9 KBusersService
Activate user by id
Activate user by id. Returns user data with active: true
post/company/v1/users/{userId}/activate
Path parameters
userIdinteger required
User id
Response
OK
Example response
{
"id": 1,
"firstName": "Stas",
"lastName": "Raranetskyi",
"position": "CTO",
"specialization": "Specialist",
"country": "Ukraine",
"city": "Kiyv",
"avatar": "/storage/avatars/c4ca423/avatar.jpeg",
"aboutMyself": "about me",
"registered": true,
"birthday": 1654180120,
"dateOfDismiss": 1654180120,
"showBirthYear": true,
"email": [
{
"id": "",
"type": "main",
"value": "stark@gmail.com",
"main": true
},
{
"id": "01gdnpddf5xgzxqvcn4x83mc2s",
"type": "work",
"value": "benner@gmail.com",
"main": false
}
],
"phone": [
{
"id": "01gdnpddf5xgzxqvcn4x83mc2s",
"type": "WORK",
"value": "+380123456789"
}
],
"roles": [
"OWNER",
"Employee",
"ADMIN"
],
"departmentsIds": [
"1",
"2"
],
"socialMedia": [
{
"id": "01gdnpddf5xgzxqvcn4x83bn2s",
"name": "facebook",
"link": "https://www.facebook.com"
}
],
"emailInvitation": true,
"dateOfInvitation": 1654180120
}