fyi. opensocial. uploadImage
Upload an image for the profile avatar or banner. Requires group.configure. Binary input like com.atproto.repo.uploadBlob; the group is a parameter because the blob has to land in that group's repo for a profile record to reference it.
- Kind
- A method (procedure)
- Part of
- The reference host
- Record
at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.uploadImage
main procedure
Parameters
| Field | Type | Description |
|---|---|---|
group (required) | string (did) | The group DID. Every method is served by the group's host and authorized against that group's roles. |
Input
Encoding: */*
Output
Encoding: application/json
| Field | Type | Description |
|---|---|---|
blob (required) | blob |
The schema as published
{
"defs": {
"main": {
"description": "Upload an image for the profile avatar or banner. Requires group.configure. Binary input like com.atproto.repo.uploadBlob; the group is a parameter because the blob has to land in that group's repo for a profile record to reference it.",
"input": {
"encoding": "*/*"
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"blob": {
"type": "blob"
}
},
"required": [
"blob"
],
"type": "object"
}
},
"parameters": {
"properties": {
"group": {
"description": "The group DID. Every method is served by the group's host and authorized against that group's roles.",
"format": "did",
"type": "string"
}
},
"required": [
"group"
],
"type": "params"
},
"type": "procedure"
}
},
"id": "fyi.opensocial.uploadImage",
"lexicon": 1
}