social.colibri.beta.bridge.uploadBlob
Uploads a file to the community's repo for use in a bridged message or as a bridged author's avatar.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | bridge.beta.colibri.social |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Uploads a file to the community's repo for use in a bridged message or as a bridged author's avatar.",
"errors": [
{
"description": "The request is missing, malformed, or unverifiable service auth.",
"name": "AuthRequired"
},
{
"description": "No community exists at the given DID.",
"name": "CommunityNotFound"
},
{
"description": "The community has no bridge registration with that id.",
"name": "RegistrationNotFound"
},
{
"description": "The caller is not the bridge this registration belongs to.",
"name": "Forbidden"
},
{
"description": "An admin has paused this registration.",
"name": "RegistrationDisabled"
},
{
"description": "The bridge sent too many requests. Retry after the interval in the response headers.",
"name": "RateLimited"
},
{
"description": "The file is larger than this AppView accepts from bridges.",
"name": "BlobTooLarge"
},
{
"description": "The AppView cannot act as the community because its stored credentials are missing or unusable.",
"name": "CredentialsUnavailable"
}
],
"input": {
"description": "The raw file bytes.",
"encoding": "*/*"
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"blob": {
"description": "The uploaded blob, to reference from a message or author.",
"type": "blob"
}
},
"required": [
"blob"
],
"type": "object"
}
},
"parameters": {
"properties": {
"community": {
"description": "The community the registration belongs to.",
"format": "did",
"type": "string"
},
"registration": {
"description": "Record key of the registration.",
"format": "tid",
"type": "string"
}
},
"required": [
"community",
"registration"
],
"type": "params"
},
"type": "procedure"
}
},
"id": "social.colibri.beta.bridge.uploadBlob",
"lexicon": 1
}