🔒 Заблокировать (исключить из команды) пользователя в компании.
Заблокировать (исключить из команды) пользователя в компании.
Access: authorized (10 ) · Scope: write
Allows: user:block (все обязательны; ресурс — <тип>ID / ID из запроса, user:* — userID или сам пользователь)
TypeScript (copy-paste)
GET /company/access/block
<details open><summary><b>Params</b></summary>export interface CompanyAccessBlockParams {
userID: string
reason?: company_access_block_reason | null
note?: string | null
}
</details>
<details open><summary><b>Response</b></summary>
export type CompanyAccessBlockResponse = IServerResponse<UserDto>
export interface IServerResponse<T = any> {
code: number
data: T
srvTS: number
rkey: string
}
</details>
Полный файл типов: /docs/types · raw: /docs/api-types.ts
Request
- Base URL: http://localhost
- URL: http://localhost/company/access/block
- Auth: one of:
- API key in header sid and API key in header rts and API key in header sig
- HTTP bearer
Query parameters
Можно передать header userID (сервер мержит headers+query)
self = "self", unfit = "unfit", discipline = "discipline"
Можно передать header reason (сервер мержит headers+query)
Можно передать header note (сервер мержит headers+query)
Headers
UUID устройства клиента
Таймзона клиента (IANA или offset)
Имя клиентского приложения
Версия клиента
Уникальный ключ запроса для логов/саппорта
Response
OK — IServerResponse<UserDto>
Example response
{
"code": 200
}Changes
No recorded changes to this operation across all 1 revision of this API.