pub.chive.governance.grantDelegation

Grant PDS delegation to a trusted editor. Only accessible to administrators. Delegation allows the user to write records to the Governance PDS.

Repository @lexicons.governance.chive.pub did:plc:egjghlwgts2hlcer2txilxeh not from the namespace authority
Details · procedure
Kindprocedure
Authoritygovernance.chive.pub
Indexed

Procedure

procedure · POST

Input

application/json

collections

requiredarray

NSID collections the delegation covers

  • minLength: 1
itemsstring

daysValid

requiredinteger

Number of days the delegation is valid

  • minimum: 1
  • maximum: 365
  • default: 365

delegateDid

requiredstring · did

DID of the user to delegate to

Maximum records delegate can create per day

  • minimum: 1
  • maximum: 1000
  • default: 100

Output

application/json
Reference

Errors

AuthenticationRequired

No description in schema.

Unauthorized

No description in schema.

InvalidRequest

No description in schema.

#delegationResult

object

Result of delegation operation

Properties

Delegation ID (if created)

message

requiredstring

Human-readable result message

success

requiredboolean

Whether the operation succeeded

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • List active PDS delegations. Only accessible by administrators.

  • Revoke an active PDS delegation. Only accessible to administrators.

  • Starts delegating the caller's writes to a gateway. The gateway, an OAuth client of the caller's PDS, pushes an authorization request for the caller and answers with the page where the caller approves it; once they do, the gateway keeps the session, replacing any it held, to write on the caller's behalf for collaborators and batched commits. Requires a service token from the caller's PDS, audience the gateway's DID, for this method.

  • social.agent.delegation.grant

    record not from the namespace authority

    Delegation grant from a human to an agent. Lives on the grantor's (human's) PDS. Accumulating record keyed by TID (one per delegation).