Organization settings

Get a coworker

Returns the specified coworker with a list of their permissions.


Restrictions:

  • Users of type watcher cannot see coworker detail information.
get/accounts/{account_id}/coworkers/{coworker_id}

Request

  • Base URL: https://api.huntflow.ru/v2
  • URL: https://api.huntflow.ru/v2/accounts/{account_id}/coworkers/{coworker_id}
  • Auth: HTTP bearer

Path parameters

account_idinteger required
coworker_idinteger required

Coworker ID

Query parameters

vacancy_idinteger

Vacancy ID. Used to filter permissions by vacancy. If supplied, then the list of permissions will only contain permissions for the specified vacancy.

Response

Successful Response

idinteger required

Coworker ID

memberinteger required

User ID

namestring

Coworker name

typestring required

Coworker type (role)

headinteger

Head user ID

emailstring email

Email

metaobject

Additional meta information

Example response

{
  "id": 12,
  "member": 1,
  "name": "John Doe",
  "type": "owner",
  "head": 2,
  "email": "mail@gmail.com",
  "permissions": [
    {
      "permission": "status",
      "value": "97",
      "vacancy": 1
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.