pub.chive.governance.grantDelegation

chive.pub View official

Documentation

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

main procedure

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

Input

Encodingapplication/json
collections array Required

NSID collections the delegation covers

minLength: 1 items
daysValid integer Required

Number of days the delegation is valid

minimum: 1maximum: 365
delegateDid stringdid Required

DID of the user to delegate to

maxRecordsPerDay integer Optional

Maximum records delegate can create per day

minimum: 1maximum: 1000

Output

Encodingapplication/json

Errors

AuthenticationRequired
Unauthorized
InvalidRequest
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "description": "Grant PDS delegation to a trusted editor. Only accessible to administrators. Delegation allows the user to write records to the Governance PDS.",
  "errors": [
    {
      "name": "AuthenticationRequired"
    },
    {
      "name": "Unauthorized"
    },
    {
      "name": "InvalidRequest"
    }
  ],
  "input": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "collections": {
          "description": "NSID collections the delegation covers",
          "items": {
            "type": "string"
          },
          "minLength": 1,
          "type": "array"
        },
        "daysValid": {
          "default": 365,
          "description": "Number of days the delegation is valid",
          "maximum": 365,
          "minimum": 1,
          "type": "integer"
        },
        "delegateDid": {
          "description": "DID of the user to delegate to",
          "format": "did",
          "type": "string"
        },
        "maxRecordsPerDay": {
          "default": 100,
          "description": "Maximum records delegate can create per day",
          "maximum": 1000,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "delegateDid",
        "collections",
        "daysValid"
      ],
      "type": "object"
    }
  },
  "output": {
    "encoding": "application/json",
    "schema": {
      "ref": "#delegationResult",
      "type": "ref"
    }
  },
  "type": "procedure"
}
delegationResult object

Result of delegation operation

Properties

delegationId string Optional

Delegation ID (if created)

message string Required

Human-readable result message

success boolean Required

Whether the operation succeeded

View raw schema
{
  "description": "Result of delegation operation",
  "properties": {
    "delegationId": {
      "description": "Delegation ID (if created)",
      "type": "string"
    },
    "message": {
      "description": "Human-readable result message",
      "type": "string"
    },
    "success": {
      "description": "Whether the operation succeeded",
      "type": "boolean"
    }
  },
  "required": [
    "success",
    "message"
  ],
  "type": "object"
}

Lexicon Garden

@