MCP Control
Компания и доступ · Изменение

Доступ · Подключения · Сохранение

access_connection_save
Папки документов

Попробуйте три запроса

Подготовить
  1. Вы указываетеClientid
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Доступ / Подключения / Сохранение». Для изменения нужны clientId, scopeCeiling. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
clientId
Параметр
scopeCeiling
Параметр
allLocations
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Доступ / Подключения / Сохранение» с параметром clientId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
clientId
DEMO-101
allLocations
true
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Доступ / Подключения / Сохранение» по исходному ответу. Покажи companyId, uid. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.

Описание разработчика

Configure a registered client connection ceiling within administrator and target grants. Existing consent is intersected with the new ceiling; no extra OAuth consent is manufactured.

Параметры запроса
clientId
Exact registered OAuth client ID; never a display name. обязательно по схеме · string · до символов 2048
scopeCeiling
Allowed OAuth scopes; does not create user consent or enlarge existing token scopes. обязательно по схеме · array · до элементов 512
allLocations
Whether all company locations are allowed; cannot exceed the caller ceiling. обязательно по схеме · boolean
locationIds
Exact native locations within the current administrative ceiling. обязательно по схеме · array · до элементов 200
expectedVersion
Exact current version; null only when creating a previously absent record. обязательно по схеме · integer / null
uid
Exact Firebase account UID; must have protected membership in the connected company. обязательно по схеме · string · до символов 128
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
companyId
Company resolved from the authenticated connection. обязательно по схеме · string · до символов 128
uid
Exact Firebase account UID; must have protected membership in the connected company. обязательно по схеме · string · до символов 128
connection
Committed protected connection. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа access_connection_save
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "clientId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "pattern": "^[^\\s\\x00-\\x1f\\x7f]+$",
      "description": "Exact registered OAuth client ID; never a display name."
    },
    "scopeCeiling": {
      "maxItems": 512,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "pattern": "^[A-Za-z0-9_.:-]+$"
      },
      "description": "Allowed OAuth scopes; does not create user consent or enlarge existing token scopes."
    },
    "allLocations": {
      "type": "boolean",
      "description": "Whether all company locations are allowed; cannot exceed the caller ceiling."
    },
    "locationIds": {
      "maxItems": 200,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "pattern": "^[A-Za-z0-9_~:@+.-]+$"
      },
      "description": "Exact native locations within the current administrative ceiling."
    },
    "expectedVersion": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ],
      "description": "Exact current version; null only when creating a previously absent record."
    },
    "uid": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Exact Firebase account UID; must have protected membership in the connected company."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable operation ID. Reuse the exact arguments after an uncertain response."
    }
  },
  "required": [
    "clientId",
    "scopeCeiling",
    "allLocations",
    "locationIds",
    "expectedVersion",
    "uid",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "$ref": "#/$defs/_mcp0"
    },
    "uid": {
      "$ref": "#/$defs/_mcp1"
    },
    "connection": {
      "type": "object",
      "properties": {
        "uid": {
          "$ref": "#/$defs/_mcp1"
        },
        "companyId": {
          "$ref": "#/$defs/_mcp0"
        },
        "clientId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048,
          "pattern": "^[^\\s\\x00-\\x1f\\x7f]+$",
          "description": "Exact registered OAuth client ID; never a display name."
        },
        "active": {
          "type": "boolean",
          "description": "Whether the protected assignment is enabled."
        },
        "blocked": {
          "default": false,
          "description": "Whether this connection is explicitly blocked.",
          "type": "boolean"
        },
        "managed": {
          "default": false,
          "description": "Whether an administrator configured this connection.",
          "type": "boolean"
        },
        "scopes": {
          "maxItems": 512,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          },
          "description": "Currently consented scopes within its ceiling."
        },
        "scopeCeiling": {
          "description": "Allowed OAuth scopes; does not create user consent or enlarge existing token scopes.",
          "maxItems": 512,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "allLocations": {
          "type": "boolean",
          "description": "Whether all company locations are allowed; cannot exceed the caller ceiling."
        },
        "locationIds": {
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_~:@+.-]+$"
          },
          "description": "Exact native locations within the current administrative ceiling."
        },
        "version": {
          "default": 0,
          "description": "Current optimistic concurrency version.",
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "revocationVersion": {
          "default": 0,
          "description": "Monotonic revocation epoch; revoked tokens cannot revive.",
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "uid",
        "companyId",
        "clientId",
        "active",
        "blocked",
        "managed",
        "scopes",
        "allLocations",
        "locationIds",
        "version",
        "revocationVersion"
      ],
      "additionalProperties": false,
      "description": "Committed protected connection."
    }
  },
  "required": [
    "companyId",
    "uid",
    "connection"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Company resolved from the authenticated connection."
    },
    "_mcp1": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Exact Firebase account UID; must have protected membership in the connected company."
    }
  }
}