Users

Get Users

GET /dashboard/users

Query Parameters

Name
Type
Description

q

String

Search users based on string

permisison

String

Search users based on permission, options (admin, user)

division

Integer

Search users admin based on division id

page

Integer

Get list based on page

per_page

Integer

Number of records you want to display

order

String

options: DESC or ASC default: DESC

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Your admin bearer Token

{
    "data": [
        {
            "id": 757,
            "name": "Ini Test",
            "email": "[email protected]",
            "phone": "098112933123",
            "avatar": "https://minio-s3.dev.embrio.id/munio/uploads/public/667/cd1/73a/667cd173a6ce0722604548.png",
            "is_activated": true,
            "is_admin": 1,
            "is_admin_division": true,
            "division_id": 4,
            "division_name": "Regional Bali",
            "division_image": "https://minio-s3.dev.embrio.id/munio/uploads/public/667/cd1/73a/667cd173a6ce0722604548.png"
        }
    ],
    "meta": {
        "pagination": {
            "total": 37,
            "count": 1,
            "per_page": 1,
            "current_page": 1,
            "total_pages": 37,
            "links": {
                "next": "http://munio-backend.test/api/v1/dashboard/users?page=2"
            }
        }
    }
}

Update User

PUT /dashboard/users/{id}

Path Parameters

Name
Type
Description

id*

Integer

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Bearer access_token

Request Body

Name
Type
Description

name

String

email

String

phone

String

avatar

String

is_activated

Boolean

is_admin

Boolean

division_id

Integer

Example Request

Get User Detail

GET /dashboard/users/{id}

Path Parameters

Name
Type
Description

id*

Integer

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Delete User

DELETE /dashboard/users/{id}

Path Parameters

Name
Type
Description

id*

Integer

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Bearer access_token

Last updated