Grant PDS delegation to a trusted editor. Only accessible to administrators. Delegation allows the user to write records to the Governance PDS.
Input
application/jsoncollections
array
Required
NSID collections the delegation covers
minLength: 1 itemsdaysValid
integer
Required
Number of days the delegation is valid
minimum: 1maximum: 365delegateDid
stringdid
Required
DID of the user to delegate to
maxRecordsPerDay
integer
Optional
Maximum records delegate can create per day
minimum: 1maximum: 1000Output
application/jsonErrors
AuthenticationRequired
Unauthorized
InvalidRequest
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
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"
}