Skip to content

Thing.share

POST /{namespace}/things/{thing}/share

Share grants a person, a Role or a guest Verbs on one record and everything it contains.

Noun
Thing
Mode
do
Event
Thing.shared

Inputs

InputTypeRequiredDescription
thingThingrequiredThe record to share.
toPartyrequiredWho receives the grant: a person, or a guest who fills only the guest Role.
verbsstring[]requiredThe Verbs granted, such as get and comment.

Outputs

OutputTypeRequiredDescription
permissionPermissionrequiredThe grant, scoped to the record and its contents.
thingThingrequiredThe Thing shared.

Effects

  • Emits Thing.shared.
  • Performed by the Security Engineer.
  • Two-way: it runs at once, in the try, send and do modes.
  • Follows containment Relationships, so sharing a folder shares documents added later.
  • Widening a share follows the Approval rule for widening a Role; unsharing applies on the next call.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Thing.share

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.