Company
🔒 Обновление настроек контроля и условий найма сотрудника в компании.
Обновление настроек контроля и условий найма сотрудника в компании.
Access: authorized (10 ) · Scope: write
Allows: user:employment (все обязательны; проверка в команде по ресурсу из запроса)
TypeScript (copy-paste)
POST /company/control/update
<details open><summary><b>Params</b></summary>export interface CompanyControlUpdateParams {
userID: string
}
</details>
<details open><summary><b>Body (Partial)</b></summary>
// Patch-body: все поля опциональны (Valid.Patch)
export type CompanyControlUpdateBody = Partial<UserDto>
export interface CompanyControlUpdateBodyFields {
ID?: string
cID?: string
userID?: string
accessType?: AccessType
status?: string
statusDT?: string
statusUID?: string
hasActiveRole?: boolean | null
allProductAccess?: boolean | null
/** Day key (YYYYMMDD or internal day index) */
rolesStartDK?: number | null
employment?: Record<string, any> | null
isOwner?: boolean
note?: Record<string, any> | null
params?: Record<string, any> | null
productAccess?: Record<string, any> | null
marginPercent?: number | null
roles?: Array<any> | null
department?: Record<string, any> | null
allowsSchemes?: Record<string, any> | null
allows?: Record<string, any> | null
/** Unix timestamp in milliseconds */
allowsTS?: number | null
/** Unix timestamp in milliseconds */
updTS?: number
updUID?: string
}
</details>
<details open><summary><b>Response</b></summary>
export type CompanyControlUpdateResponse = IServerResponse<UserDto>
export interface IServerResponse<T = any> {
code: number
data: T
srvTS: number
rkey: string
}
</details>
Полный файл типов: /docs/types · raw: /docs/api-types.ts
post/company/control/update
Request
- Base URL: http://localhost
- URL: http://localhost/company/control/update
- Auth: one of:
- API key in header sid and API key in header rts and API key in header sig
- HTTP bearer
Query parameters
userIDstring uuid required
Можно передать header userID (сервер мержит headers+query)
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<UserDto>
Example response
{
"code": 200
}Changes
No recorded changes to this operation across all 1 revision of this API.