Disable one or more PDS invite codes (TEM-502). Requires the caller to have the `superAdmin` role. Codes are provided as suffix-only strings; the handler re-prepends the env prefix stored under `APPVIEW_PDS_INVITE_CODE_PREFIX` before calling `com.atproto.admin.disableInviteCodes`. On success, writes one `inviteCodeDisabled` audit row per code (payload = SHA-256 hash of the suffix, never the plain code).
Input
application/jsoncodes
array
Required
Suffix-only invite codes to disable. The env prefix is re-prepended by the handler before the PDS call.
minLength: 1 itemsOutput
application/jsonErrors
Forbidden
The caller is not a super-admin. InvalidRequest
`codes` is empty. PdsUnavailable
The PDS returned a transient failure — nothing is audited locally, retry. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Disable one or more PDS invite codes (TEM-502). Requires the caller to have the `superAdmin` role. Codes are provided as suffix-only strings; the handler re-prepends the env prefix stored under `APPVIEW_PDS_INVITE_CODE_PREFIX` before calling `com.atproto.admin.disableInviteCodes`. On success, writes one `inviteCodeDisabled` audit row per code (payload = SHA-256 hash of the suffix, never the plain code).",
"errors": [
{
"description": "The caller is not a super-admin.",
"name": "Forbidden"
},
{
"description": "`codes` is empty.",
"name": "InvalidRequest"
},
{
"description": "The PDS returned a transient failure — nothing is audited locally, retry.",
"name": "PdsUnavailable"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"codes": {
"description": "Suffix-only invite codes to disable. The env prefix is re-prepended by the handler before the PDS call.",
"items": {
"maxLength": 128,
"type": "string"
},
"minLength": 1,
"type": "array"
}
},
"required": [
"codes"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {},
"type": "object"
}
},
"type": "procedure"
}