Default share uses
- Type
- share_default_max_uses
- Category
- Invitations
- Enforced at
- Authoring-time
- Tiers
- OrgIntegrationDevice
- Enforcement
- Enforce
- Default
- Not configured — omitted share max_uses stores 1.
Create never omits max_uses for shares unless the author chose unlimited and policy allows it. If the client omits max_uses, the effective default applies (this policy, combined as the minimum of configured defaults, otherwise 1). A child cannot raise a parent’s default. Write is rejected if the default is greater than the effective finite share_max_uses cap.
When it is enforced
Evaluated when someone creates or updates an invitation, hold, or share. Requests that would exceed the limit are rejected — they are not silently rewritten.
Where to set it
Settings → Policies (org), the integration Policies tab, or — on PalGate — the device steward Policies tab.
Policies never grant access. See thepolicies architecture guidefor how org, integration, and device tiers combine.
Arguments
The config object on create/update. Row fields outsideconfig are enforcement (this type acceptsenforce; any other value is rejected with 400), enabled (disabled rows never apply), and capability.
| Name | Type | Required | Values | Description |
|---|---|---|---|---|
| max_uses | integer | Yes | — | Default redemption count when the author omits max_uses. Integer from 1 through 31536000. |
| applies_to | string[] | No | adminmemberresidentall | Principal kinds this row binds, as a non-empty array of admin, member, resident, all. Other kinds, a bare string, and empty arrays are rejected. `all` matches every kind this policy can bind. A caller is every kind it is at once, and a row binds when any of them is listed. When omitted, the default applies. Default: Every author, including admins. |
| output | string or integer | No | — | Device policies only. One output of the device, as the device reports it (PalGate `1` or `2`, a Shelly, Tasmota, or Waveshare channel index). When set, the policy binds only actions on that output; when omitted, every output of the device. An output that is not one of the device’s outputs, or `output` on an organization or integration policy, is rejected. If an action’s output cannot be identified, an output-scoped policy denies it. |
How overlapping rows combine
Minimum of max_uses across applicable default rows.
Example
Creating a share without max_uses stores 2 opens instead of 1.
{ "max_uses": 2}Integrations
This type is documented on these connectors:
- Home Assistant (home_assistant)
- KNX (knx)
- MQTT (mqtt)
- PalGate Cloud (palgate_cloud)
- Shelly Cloud (shelly_cloud)
- Shelly Websocket (shelly_websocket)
- Tasmota (tasmota)
- Virtual Access (virtual_access)
- Virtual Demo Devices (virtual_demo)
- Waveshare (waveshare)
Related
- Policy catalog
- Policies architecture guide
- Max share uses (share_max_uses)
- Max invitation uses (invitation_max_uses)