{
"id": "social.coves.community.update",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"communityDid"
],
"properties": {
"avatarBlob": {
"type": "string",
"maxLength": 1400000,
"description": "Base64-encoded avatar image data (png, jpeg, or webp)"
},
"bannerBlob": {
"type": "string",
"maxLength": 2800000,
"description": "Base64-encoded banner image data (png, jpeg, or webp)"
},
"visibility": {
"type": "string",
"maxLength": 64,
"description": "Community visibility level",
"knownValues": [
"public",
"unlisted",
"private"
]
},
"description": {
"type": "string",
"maxLength": 10000,
"description": "Community description",
"maxGraphemes": 1000
},
"displayName": {
"type": "string",
"maxLength": 1280,
"description": "Display name for the community",
"maxGraphemes": 128
},
"communityDid": {
"type": "string",
"format": "did",
"description": "DID of the community to update"
},
"avatarMimeType": {
"type": "string",
"maxLength": 128,
"description": "MIME type of the avatar image (image/png, image/jpeg, image/webp)"
},
"bannerMimeType": {
"type": "string",
"maxLength": 128,
"description": "MIME type of the banner image (image/png, image/jpeg, image/webp)"
},
"moderationType": {
"type": "string",
"maxLength": 64,
"description": "Type of moderation system",
"knownValues": [
"moderator",
"sortition"
]
},
"contentWarnings": {
"type": "array",
"items": {
"type": "string",
"maxLength": 32,
"knownValues": [
"nsfw",
"violence",
"spoilers"
]
},
"maxLength": 10,
"description": "Required content warnings for this community"
},
"allowExternalDiscovery": {
"type": "boolean",
"description": "Whether other Coves instances can index and discover this community"
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "NotFound",
"description": "Community not found"
},
{
"name": "NotAuthorized",
"description": "User is not authorized to update this community"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"uri",
"cid"
],
"properties": {
"cid": {
"type": "string",
"format": "cid",
"description": "CID of the updated community profile"
},
"uri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the updated community profile"
}
}
},
"encoding": "application/json"
},
"description": "Update community profile. Requires authentication and moderator/admin permissions."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}