fyi. opensocial. updateProfile
Replace the profile: name, description, join policy, where it meets, its topics and languages. Requires group.configure. Fields are inlined rather than referencing fyi.opensocial.profile, because a record def cannot be used as an input object — mirrors createGroup.
- Kind
- A method (procedure)
- Part of
- The reference host
- Record
at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.updateProfile
main procedure
Input
Encoding: application/json
| Field | Type | Description |
|---|---|---|
avatar | blob
| The group's avatar, as returned by uploadImage. Omit to keep the current one; null to clear it. |
banner | blob
| The group's banner, as returned by uploadImage. Omit to keep the current one; null to clear it. |
description | string
| |
displayName (required) | string
| |
group (required) | string (did) | The group DID. Every method is served by the group's host and authorized against that group's roles. |
joinPolicy | string
| |
languages | array of string (language)
| The languages it uses, as BCP 47 tags: en, pl, sl. |
location | union of community., community., community., community. | Where it meets, if it meets somewhere: a town or city is enough. |
online | boolean | It meets online, as well as or instead of somewhere. |
topics | array of string
| What it's about, a few words each, as the group puts it: climbing, choir, renters' union. |
url | string (uri) | The group's own site. |
Output
Encoding: application/json
| Field | Type | Description |
|---|---|---|
cid (required) | string (cid) | |
uri (required) | string (at-uri) |
The schema as published
{
"defs": {
"main": {
"description": "Replace the profile: name, description, join policy, where it meets, its topics and languages. Requires group.configure. Fields are inlined rather than referencing fyi.opensocial.profile, because a record def cannot be used as an input object — mirrors createGroup.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"avatar": {
"accept": [
"image/png",
"image/jpeg"
],
"description": "The group's avatar, as returned by uploadImage. Omit to keep the current one; null to clear it.",
"maxSize": 1000000,
"type": "blob"
},
"banner": {
"accept": [
"image/png",
"image/jpeg"
],
"description": "The group's banner, as returned by uploadImage. Omit to keep the current one; null to clear it.",
"maxSize": 1000000,
"type": "blob"
},
"description": {
"maxGraphemes": 300,
"maxLength": 3000,
"type": "string"
},
"displayName": {
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"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"
},
"joinPolicy": {
"knownValues": [
"fyi.opensocial.profile#open",
"fyi.opensocial.profile#request",
"fyi.opensocial.profile#invite"
],
"type": "string"
},
"languages": {
"description": "The languages it uses, as BCP 47 tags: en, pl, sl.",
"items": {
"format": "language",
"type": "string"
},
"maxLength": 5,
"type": "array"
},
"location": {
"description": "Where it meets, if it meets somewhere: a town or city is enough.",
"refs": [
"community.lexicon.location.address",
"community.lexicon.location.geo",
"community.lexicon.location.fsq",
"community.lexicon.location.hthree"
],
"type": "union"
},
"online": {
"description": "It meets online, as well as or instead of somewhere.",
"type": "boolean"
},
"topics": {
"description": "What it's about, a few words each, as the group puts it: climbing, choir, renters' union.",
"items": {
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"maxLength": 10,
"type": "array"
},
"url": {
"description": "The group's own site.",
"format": "uri",
"type": "string"
}
},
"required": [
"group",
"displayName"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cid": {
"format": "cid",
"type": "string"
},
"uri": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri",
"cid"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "fyi.opensocial.updateProfile",
"lexicon": 1
}