User resources

Get users

GET https://app.smartmansys.com/api/v1/users

Query Parameters

Name
Type
Description

name

string

Return the users that exactly match the name

email

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

Name
Type
Description

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

Name
Type
Description

Authorization

string

Authentication token

Request Body

Name
Type
Description

user

object

User

Update user

PATCH https://app.smartmansys.com/api/v1/users/:id

Path Parameters

Name
Type
Description

id

integer

Id of the use

Headers

Name
Type
Description

Authorization

string

Authentication token

Request Body

Name
Type
Description

user

object

User

User delete

DELETE https://app.smartmansys.com/api/v1/users/:id

Path Parameters

Name
Type
Description

id

number

Id of the user

Headers

Name
Type
Description

Authorization

string

Authentication token

Last updated

Was this helpful?