Skip to main content
PATCH
Change a portal Rule

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.

Path Parameters

portal_id
string<uuid>
required

The portal's id, as GET /v1/portals (or the portal_list MCP tool) returns it

grant_id
string<uuid>
required

The grant's id, as GET /v1/portals/{portal_id}/grants returns it

Body

application/json
segment
Segment · object
required

The Rule's new filter. Only a Rule (segment) grant has one

Response

200 - application/json

Successful Response

created_at
string<date-time>
required
granted_by
string
required

Who added it

grantee_type
enum<string>
required

email (one person), domain (everyone with an email there) or segment (a Rule on people's fields)

Available options:
email,
domain,
segment
grantee_value
string
required

The email or domain; empty for a Rule

id
string
required

The grant's id, as GET /v1/portals/{portal_id}/grants returns it

segment
Segment · object | null
required

A Rule's filter: a CONTACT segment on people's fields

reach
GrantReach · object | null

Who the grant matches today. Whether they can sign in now also depends on the external switch: check one address with POST /v1/portals/{portal_id}/access-check