From
bafyreiafpbtv4tyax5e3d7jqghpwrgje2jicpxahzy4lynzcyw3kntcmqq
indexed 2026-06-18 13:14 UTC
View this version
To
bafyreiafpbtv4tyax5e3d7jqghpwrgje2jicpxahzy4lynzcyw3kntcmqq
indexed 2026-06-18 13:14 UTC
View this version
Compatibility
backward compatible No changes detected.
Changes
11
{22
"$type": "com.atproto.lexicon.schema",33
"defs": {44
"main": {55
"description": "Assign a role to a user",66
"errors": [77
{88
"name": "AuthenticationRequired"99
},1010
{1111
"name": "AdminRequired"1212
},1313
{1414
"name": "InvalidRequest"1515
}1616
],1717
"input": {1818
"encoding": "application/json",1919
"schema": {2020
"properties": {2121
"did": {2222
"description": "Target user DID",2323
"format": "did",2424
"type": "string"2525
},2626
"role": {2727
"description": "Role to assign",2828
"knownValues": [2929
"admin",3030
"moderator",3131
"graph-editor",3232
"author",3333
"reader",3434
"alpha-tester",3535
"premium"3636
],3737
"type": "string"3838
}3939
},4040
"required": [4141
"did",4242
"role"4343
],4444
"type": "object"4545
}4646
},4747
"output": {4848
"encoding": "application/json",4949
"schema": {5050
"properties": {5151
"success": {5252
"description": "Whether the role was assigned",5353
"type": "boolean"5454
}5555
},5656
"required": [5757
"success"5858
],5959
"type": "object"6060
}6161
},6262
"type": "procedure"6363
}6464
},6565
"id": "pub.chive.admin.assignRole",6666
"lexicon": 1,6767
"revision": 16868
}