User resources
Get users
GET https://app.smartmansys.com/api/v1/users
Query Parameters
name
string
Return the users that exactly match the name
string
Return the users that exactly matchs the email
role
string
Return the users that exactly matchs the role
employee_number
string
Return the users that exactly matchs the employee number
Headers
Authorization
string
Authentication token
{
"users": [
{
"id": 1,
"name": "First and last name",
"email": "[email protected]",
"employee_number": "2376sa",
"role": "admin",
"status": "active",
"job_title_ids": [1,2],
"business_unit_ids": []
},
{
...
}
]
}Create user
POST https://app.smartmansys.com/api/v1/users/
This endpoint also users to be created. The newly created users will receive automatically a welcome email from SmartManSys.
Headers
Authorization
string
Authentication token
Request Body
user
object
User
Update user
PATCH https://app.smartmansys.com/api/v1/users/:id
Path Parameters
id
integer
Id of the use
Headers
Authorization
string
Authentication token
Request Body
user
object
User
User delete
DELETE https://app.smartmansys.com/api/v1/users/:id
Path Parameters
id
number
Id of the user
Headers
Authorization
string
Authentication token
Last updated
Was this helpful?