GET All users from department
Changed onCom este endpoint você pode listar os usuários vinculados a um departamento. Informe o ID do departamento na URL.
Atenção: no comportamento atual, um departamento inexistente responde erro interno 500 (não há 404).
get/api/departments/{id}/users
Request
- Base URLhttps://app.plugsign.com.br
- URLhttps://app.plugsign.com.br/api/departments/{id}/users
- AuthAPI key in header Authorization
Path parameters
idinteger required
ID do departamento.
Response
200
Example response
{
"data": [
{
"id": 1,
"name": "João",
"last_name": "Silva",
"email": "developer@exemplo.com",
"phone": "11-99999-9999",
"permissions": [
"upload"
],
"recive_email": 1,
"recive_whatsapp": 1,
"role": "admin",
"status": "Active"
}
]
}Changes
- info
added the non-success response with the status
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info