dev.knotless.endOrgMembership
Deletes the account's dev.knotless.orgAcceptance records naming the organization, then asks its gateway to take the account out (dev.knotless.leaveOrg). The membership ends with the records: a gateway that does not answer leaves a warning. Requires the session cookie the pages' login sets: the appview acts with the session it keeps for that account. Clients holding their own session call the organization's gateway themselves.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | knotless.dev |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Deletes the account's dev.knotless.orgAcceptance records naming the organization, then asks its gateway to take the account out (dev.knotless.leaveOrg). The membership ends with the records: a gateway that does not answer leaves a warning. Requires the session cookie the pages' login sets: the appview acts with the session it keeps for that account. Clients holding their own session call the organization's gateway themselves.",
"errors": [
{
"description": "The change was refused: by the organization's gateway, or as the account may not make it.",
"name": "InvalidRequest"
},
{
"description": "No account is logged in to the pages, or its session has ended.",
"name": "AuthenticationRequired"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"org": {
"description": "The organization.",
"format": "did",
"type": "string"
}
},
"required": [
"org"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"warning": {
"description": "Set when the change was made only in part, saying what is left.",
"maxLength": 2000,
"type": "string"
}
},
"type": "object"
}
},
"type": "procedure"
}
},
"description": "Leaves an organization as the account logged in to this appview's pages, or declines its invitation, as `knotless org leave` does.",
"id": "dev.knotless.endOrgMembership",
"lexicon": 1
}