ai.newnal.illi.schedule.uploadImage
Root or main admin uploads the image shown on the device's alarm card of one entry (JPEG or PNG, at most 5 MB; the media service normalises it to a JPEG of at most 2,000,000 bytes). Query homeId and rkey name the entry; both records of a grouped entry get it.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | schedule.illi.newnal.ai |
| Commit rev | 3n2zzbank7l2b |
| Indexed |
Checks
Validunlimited-stringdefs.main.output.schema.properties.imageUrlNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Root or main admin uploads the image shown on the device's alarm card of one entry (JPEG or PNG, at most 5 MB; the media service normalises it to a JPEG of at most 2,000,000 bytes). Query homeId and rkey name the entry; both records of a grouped entry get it.",
"errors": [
{
"name": "NotMember"
},
{
"name": "NotAdmin"
},
{
"name": "HomeNotFound"
},
{
"name": "EntryNotFound"
},
{
"name": "UnsupportedMedia"
},
{
"name": "MediaTooLarge"
},
{
"name": "MediaUnavailable"
},
{
"name": "PdsUnavailable"
}
],
"input": {
"encoding": "*/*"
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"imageUrl": {
"type": "string"
}
},
"required": [
"imageUrl"
],
"type": "object"
}
},
"parameters": {
"properties": {
"homeId": {
"format": "tid",
"type": "string"
},
"rkey": {
"format": "record-key",
"type": "string"
}
},
"required": [
"homeId",
"rkey"
],
"type": "params"
},
"type": "procedure"
}
},
"id": "ai.newnal.illi.schedule.uploadImage",
"lexicon": 1
}