> ## Documentation Index
> Fetch the complete documentation index at: https://help.statisfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change who may sign in to a portal

> Turns either switch on or off; only the fields sent change. Turning one off keeps the grants, and people signed in lose access at their next token refresh. A staff grant (a Statisfy person in your workspace) can't call this: it speaks for your workspace.



## OpenAPI

````yaml /api/statisfy-api.openapi.json patch /v1/portals/{portal_id}/access
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/portals/{portal_id}/access:
    patch:
      tags:
        - portals
      summary: Change who may sign in to a portal
      description: >-
        Turns either switch on or off; only the fields sent change. Turning one
        off keeps the grants, and people signed in lose access at their next
        token refresh. A staff grant (a Statisfy person in your workspace) can't
        call this: it speaks for your workspace.
      operationId: portals_update_access
      parameters:
        - description: >-
            The portal's id, as GET /v1/portals (or the portal_list MCP tool)
            returns it
          in: path
          name: portal_id
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                external:
                  anyOf:
                    - type: boolean
                    - type: 'null'
                  default: null
                  description: 'Let external people in through grants. Left out: unchanged'
                  title: External
                internal:
                  anyOf:
                    - type: boolean
                    - type: 'null'
                  default: null
                  description: 'Let people of your own company in. Left out: unchanged'
                  title: Internal
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalAccess'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    PortalAccess:
      properties:
        external:
          description: External people get in when a grant admits them
          title: External
          type: boolean
        internal:
          description: People of your own company get in
          title: Internal
          type: boolean
      required:
        - external
        - internal
      title: PortalAccess
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.