app.didpic.write.createComment
Create an app.didpic.feed.comment record on the authenticated viewer's own PDS, mediated by the AppView using its server-held session (confidential OAuth client only). image, when present, must come from a prior app.didpic.write.uploadBlob call. Either text or image (or both) should be present — matching the underlying record lexicon, this isn't enforced here either.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | write.didpic.app |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.altNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.labels.itemsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.textNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Create an app.didpic.feed.comment record on the authenticated viewer's own PDS, mediated by the AppView using its server-held session (confidential OAuth client only). image, when present, must come from a prior app.didpic.write.uploadBlob call. Either text or image (or both) should be present — matching the underlying record lexicon, this isn't enforced here either.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"alt": {
"type": "string"
},
"facets": {
"items": {
"ref": "app.didpic.richtext.facet",
"type": "ref"
},
"type": "array"
},
"height": {
"minimum": 1,
"type": "integer"
},
"image": {
"accept": [
"image/png",
"image/jpeg",
"image/webp"
],
"maxSize": 5000000,
"type": "blob"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"parent": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"subject": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"text": {
"type": "string"
},
"width": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"subject"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cid": {
"format": "cid",
"type": "string"
},
"image": {
"accept": [
"image/png",
"image/jpeg",
"image/webp"
],
"maxSize": 5000000,
"type": "blob"
},
"uri": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri",
"cid"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "app.didpic.write.createComment",
"lexicon": 1
}