Update Status
Update User status by ID
GET
https://biometridon.polygon.pt/api/users/:id/status
This endpoint allows you to update the user status field.
Path Parameters
Name
Type
Description
id
string
ID of the user to get
Headers
Name
Type
Description
Content-Type
string
application/json
Authorization
string
Authentication user token
Request Body
Name
Type
Description
active
boolean
Active status
{
"data": {
"email": "user@polygon.pt",
"firstName": "User",
"lastName": "Tool",
"clientId": "5f089930ae1e08524034ec9b",
"roles": [
"5f06dd360d2a954da80c0990"
],
"active": true,
"isMaster": false,
"created_at": "2020-07-10T16:40:24.828Z",
"updated_at": "2020-07-10T16:40:24.828Z",
"id": "5f0899f8b9f874452cd5ff22",
"name": "User Tool"
},
"meta": {
"message": "User updated with success."
},
"status": true
}
Last updated
Was this helpful?