Company: Access
🔒🛡️ Создание пользовательской схемы привилегий.
Создание пользовательской схемы привилегий.
Access: authorized (10 ) · Scope: write
Allows: user:privileges (все обязательны; ресурс — <тип>ID / ID из запроса, user:* — userID или сам пользователь)
TypeScript (copy-paste)
POST /company/allows/scheme-create
<details open><summary><b>Body</b></summary>export interface CompanyAllowsSchemeCreateBody {
title: string
desc?: string | null
allows?: Record<string, any> | null
}
</details>
<details open><summary><b>Response</b></summary>
export type CompanyAllowsSchemeCreateResponse = IServerResponse<Privileges_Scheme>
export interface IServerResponse<T = any> {
code: number
data: T
srvTS: number
rkey: string
}
</details>
Полный файл типов: /docs/types · raw: /docs/api-types.ts
post/company/allows/scheme-create
Request
- Base URL: http://localhost
- URL: http://localhost/company/allows/scheme-create
- Auth: one of:
- API key in header sid and API key in header rts and API key in header sig
- HTTP bearer
Headers
devIDstring uuid required
UUID устройства клиента
tzstring required
Example:Europe/Moscow
Таймзона клиента (IANA или offset)
appstring required
Example:kosmodrom-web
Имя клиентского приложения
appVerstring required
Example:1.0.0
Версия клиента
rKeystring
Уникальный ключ запроса для логов/саппорта
Request body
Response
OK — IServerResponse<Privileges_Scheme>
Example response
{
"code": 200
}Changes
No recorded changes to this operation across all 1 revision of this API.