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
{
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"delegateDid",
"collections",
"daysValid"
],
"properties": {
"daysValid": {
"type": "integer",
"default": 365,
"maximum": 365,
"minimum": 1,
"description": "Number of days the delegation is valid"
},
"collections": {
"type": "array",
"items": {
"type": "string"
},
"minLength": 1,
"description": "NSID collections the delegation covers"
},
"delegateDid": {
"type": "string",
"format": "did",
"description": "DID of the user to delegate to"
},
"maxRecordsPerDay": {
"type": "integer",
"default": 100,
"maximum": 1000,
"minimum": 1,
"description": "Maximum records delegate can create per day"
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "Unauthorized"
},
{
"name": "InvalidRequest"
}
],
"output": {
"schema": {
"ref": "#delegationResult",
"type": "ref"
},
"encoding": "application/json"
},
"description": "Grant PDS delegation to a trusted editor. Only accessible to administrators. Delegation allows the user to write records to the Governance PDS."
}