app.didpic.write.putProfile
Create or replace the authenticated viewer's app.didpic.actor.profile record at rkey 'self' on their own PDS, mediated by the AppView using its server-held session (confidential OAuth client only). Merges over the existing record: an omitted field keeps its current stored value, an empty string clears a text field. avatar/banner, when present, must come from a prior app.didpic.write.uploadBlob call; clearAvatar/clearBanner remove the image instead.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | write.didpic.app |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.descriptionNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.displayNameNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.locationNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.pronounsNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Create or replace the authenticated viewer's app.didpic.actor.profile record at rkey 'self' on their own PDS, mediated by the AppView using its server-held session (confidential OAuth client only). Merges over the existing record: an omitted field keeps its current stored value, an empty string clears a text field. avatar/banner, when present, must come from a prior app.didpic.write.uploadBlob call; clearAvatar/clearBanner remove the image instead.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"avatar": {
"accept": [
"image/png",
"image/jpeg"
],
"maxSize": 1000000,
"type": "blob"
},
"banner": {
"accept": [
"image/png",
"image/jpeg",
"image/webp"
],
"maxSize": 2000000,
"type": "blob"
},
"clearAvatar": {
"type": "boolean"
},
"clearBanner": {
"type": "boolean"
},
"description": {
"type": "string"
},
"descriptionFacets": {
"items": {
"ref": "app.didpic.richtext.facet",
"type": "ref"
},
"type": "array"
},
"displayName": {
"type": "string"
},
"location": {
"type": "string"
},
"pronouns": {
"type": "string"
}
},
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"avatar": {
"accept": [
"image/png",
"image/jpeg"
],
"maxSize": 1000000,
"type": "blob"
},
"banner": {
"accept": [
"image/png",
"image/jpeg",
"image/webp"
],
"maxSize": 2000000,
"type": "blob"
},
"cid": {
"format": "cid",
"type": "string"
},
"uri": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri",
"cid"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "app.didpic.write.putProfile",
"lexicon": 1
}