Request Headers

Key Value
Content-Type application/json
Cookie name=root;sig=dd81ea033c2d11e6a95d0242ac11000c
X-Forwarded-For

Request Body

{"user_id": 14, "admin": "no"}

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Headers Content-Type,Token
Access-Control-Allow-Origin *
Content-Type application/json; charset=utf-8

Response Body

{"message":"user role update sccuessful, affect row: 1"}

Request Headers

Key Value
Content-Type application/json
Cookie name=root;sig=dd81ea033c2d11e6a95d0242ac11000c
X-Forwarded-For

Request Body

{"user_id": 14, "admin": "yes"}

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Headers Content-Type,Token
Access-Control-Allow-Origin *
Content-Type application/json; charset=utf-8

Response Body

{"message":"user role update sccuessful, affect row: 1"}

Request Headers

Key Value
Content-Type application/json
Cookie name=root;sig=dd81ea033c2d11e6a95d0242ac11000c
X-Forwarded-For

Request Body

{"user_id": 14, "password": "myhung"}

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Headers Content-Type,Token
Access-Control-Allow-Origin *
Content-Type application/json; charset=utf-8

Response Body

{"message":"password updated!"}

Request Headers

Key Value
Content-Type application/json
Cookie name=root;sig=dd81ea033c2d11e6a95d0242ac11000c
X-Forwarded-For

Request Body

{"user_id": 31}

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Headers Content-Type,Token
Access-Control-Allow-Origin *
Content-Type application/json; charset=utf-8

Response Body

{"message":"user 31 has been delete, affect row: 1"}