social.colibri.beta.thread.update
Renames, closes, reopens or locks a thread, or changes who may read it. An absent field leaves the current value unchanged.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | thread.beta.colibri.social |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Renames, closes, reopens or locks a thread, or changes who may read it. An absent field leaves the current value unchanged.",
"errors": [
{
"description": "The request has no valid service auth.",
"name": "AuthRequired"
},
{
"description": "The requesting user lacks the thread.manage permission and is not the user who opened the thread renaming, closing or reopening it. Changing visibility or locking always needs thread.manage, and the user who opened a locked thread can't close or reopen it.",
"name": "Forbidden"
},
{
"description": "No thread matches the given space reference.",
"name": "ThreadNotFound"
},
{
"description": "The requesting user cannot grant a role that outranks their own.",
"name": "RoleHierarchy"
},
{
"description": "The arguments are inconsistent or malformed beyond schema validation.",
"name": "InvalidRequest"
},
{
"description": "The AppView cannot act as the community because its stored credentials are missing or unusable.",
"name": "CredentialsUnavailable"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"closed": {
"description": "Closes the thread when true and reopens it when false. Absent leaves the current value unchanged.",
"type": "boolean"
},
"locked": {
"description": "Locks the thread when true and unlocks it when false. Absent leaves the current value unchanged.",
"type": "boolean"
},
"name": {
"description": "The thread's title. Absent leaves the current value unchanged.",
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"thread": {
"description": "The thread to update.",
"format": "space-ref",
"type": "string"
},
"visibleToMembers": {
"description": "Members that may read this thread beyond visibleToRoles.",
"items": {
"description": "A member.",
"format": "did",
"type": "string"
},
"type": "array"
},
"visibleToRoles": {
"description": "Roles that may read this thread. Empty means everyone who may read the channel may read the thread.",
"items": {
"description": "A role.",
"format": "record-key",
"type": "string"
},
"type": "array"
}
},
"required": [
"thread"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"thread": {
"description": "The thread, after the update.",
"ref": "social.colibri.beta.thread.defs#threadView",
"type": "ref"
}
},
"required": [
"thread"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "social.colibri.beta.thread.update",
"lexicon": 1
}