GET All users from department

Changed on

Com 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 URL
    https://app.plugsign.com.br
  • URL
    https://app.plugsign.com.br/api/departments/{id}/users
  • Auth
    API 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