Компания и доступ · Изменение
Доступ · Должности · Сохранение
access_position_save
Попробуйте три запроса
Подготовить
- Вы указываетеPositionid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Доступ / Должности / Сохранение». Для изменения нужны positionId, активность. Покажи объект и ожидаемый эффект до выполнения.
- positionId
- Параметр
- active
- Активность
- permissions
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Доступ / Должности / Сохранение» с параметром positionId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- positionId
- DEMO-101
- active
- true
- allLocations
- true
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Доступ / Должности / Сохранение» по исходному ответу. Покажи companyId, positionId. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Configure a native Firebase Position access policy within current protected administrator and OAuth ceilings. Replaces only Access configuration, never native Position fields. Employees with ordinary bound grants use the intersection of their grant and this policy. A current Management Position receives the full company MCP catalog automatically.
Параметры запроса
- positionId
- Exact existing native Firebase Position identifier. обязательно по схеме · string · до символов 128
- active
- Whether employees bound to this Position may use its permissions. обязательно по схеме · boolean
- permissions
- Complete replacement Position permission ceiling, selected from the existing access capability catalog. обязательно по схеме · array · до элементов 512
- modules
- Enabled modules within the administrator ceiling. обязательно по схеме · array · до элементов 80
- integrations
- Enabled integrations within the administrator ceiling. обязательно по схеме · array · до элементов 80
- allLocations
- Whether all company locations are allowed, within the administrator ceiling. обязательно по схеме · boolean
- locationIds
- Exact permitted company location identifiers. обязательно по схеме · array · до элементов 200
- expectedVersion
- Exact current policy version; null only for its initial configuration. обязательно по схеме · integer / null
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- companyId
- Company resolved from the authenticated connection. обязательно по схеме · string · до символов 128
- positionId
- Native Firebase Position identifier. обязательно по схеме · string · до символов 128
- policy
- Current protected Position permission ceiling, or null if not configured. обязательно по схеме · object / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"positionId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Exact existing native Firebase Position identifier."
},
"active": {
"type": "boolean",
"description": "Whether employees bound to this Position may use its permissions."
},
"permissions": {
"maxItems": 512,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.:-]+$"
},
"description": "Complete replacement Position permission ceiling, selected from the existing access capability catalog."
},
"modules": {
"maxItems": 80,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Enabled modules within the administrator ceiling."
},
"integrations": {
"maxItems": 80,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Enabled integrations within the administrator ceiling."
},
"allLocations": {
"type": "boolean",
"description": "Whether all company locations are allowed, within the administrator ceiling."
},
"locationIds": {
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Exact permitted company location identifiers."
},
"expectedVersion": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Exact current policy version; null only for its initial configuration."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable operation ID. Reuse the exact arguments after an uncertain response."
}
},
"required": [
"positionId",
"active",
"permissions",
"modules",
"integrations",
"allLocations",
"locationIds",
"expectedVersion",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Company resolved from the authenticated connection."
},
"positionId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Native Firebase Position identifier."
},
"policy": {
"anyOf": [
{
"type": "object",
"properties": {
"active": {
"type": "boolean",
"description": "Whether employees bound to this Position may use its permissions."
},
"permissions": {
"maxItems": 512,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.:-]+$"
},
"description": "Complete replacement Position permission ceiling, selected from the existing access capability catalog."
},
"modules": {
"maxItems": 80,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Enabled modules within the administrator ceiling."
},
"integrations": {
"maxItems": 80,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Enabled integrations within the administrator ceiling."
},
"allLocations": {
"type": "boolean",
"description": "Whether all company locations are allowed, within the administrator ceiling."
},
"locationIds": {
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Exact permitted company location identifiers."
},
"companyId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Authenticated company identity."
},
"positionId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Existing native Firebase Position identifier."
},
"version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Current Position access policy version."
}
},
"required": [
"active",
"permissions",
"modules",
"integrations",
"allLocations",
"locationIds",
"companyId",
"positionId",
"version"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Current protected Position permission ceiling, or null if not configured."
}
},
"required": [
"companyId",
"positionId",
"policy"
],
"additionalProperties": false
}