ai.newnal.illi.mydata.putRecord
Root or main admin writes one My Data record in the parent's name: the collection's #section (rkey self) or one #entry (rkey absent = a new item, else the item to replace). Validated against the platform's published lexicon and ILLI's checks (dates, times, durations, RRULE, codes; a section saying 'none' must have no item of that kind). Written with the parent's delegated session, followed by its provenance (agent = the caller, method reported_by_other); the previous value goes to the audit log; a 'skipped' or 'not sure' state of the answered question is cleared. expectedCid, when given, must be the current CID (RecordChanged otherwise, with the current record in the message). Emits changed {collection: "mydata"}.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | mydata.illi.newnal.ai |
| Commit rev | 3n2zzb7ural2b |
| Indexed |
Procedure
procedure · POSTInput
application/jsonThe `data` of one My Data record: the collection's #section (one record at rkey self) or #entry (one record per item), as the platform's published lexicon defines it. $type names the def.
- ai.newnal.mydata.healthFunctionalAbilities#entry
- ai.newnal.mydata.healthMedicalEvents#section
- ai.newnal.mydata.healthMedicalEvents#entry
- ai.newnal.mydata.healthAllergies#section
- ai.newnal.mydata.healthAllergies#entry
- ai.newnal.mydata.healthMedications#section
- ai.newnal.mydata.healthMedications#entry
- ai.newnal.mydata.healthHealthStatus#section
- ai.newnal.mydata.healthHealthStatus#entry
- ai.newnal.mydata.interestsAndTastesTravel#section
- ai.newnal.mydata.interestsAndTastesHobbies#section
- ai.newnal.mydata.interestsAndTastesHobbies#entry
- ai.newnal.mydata.interestsAndTastesFood#section
- ai.newnal.mydata.interestsAndTastesGeneral#entry
- ai.newnal.mydata.interestsAndTastesMedia#section
- ai.newnal.mydata.interestsAndTastesNews#section
- ai.newnal.mydata.interestsAndTastesFavoriteWorks#entry
- ai.newnal.mydata.interestsAndTastesFavoriteCreators#entry
- ai.newnal.mydata.capabilitiesSkillsAndKnowledge#entry
- ai.newnal.mydata.valuesAndGoalsGoals#entry
- ai.newnal.mydata.profileScheduleActivities#entry
- ai.newnal.mydata.lifestyleHabits#entry
- ai.newnal.mydata.profileIdentity#section
- ai.newnal.mydata.profileBirth#section
- ai.newnal.mydata.profileRepresentation#section
expectedCid
string · ciditemKeys
arrayThe question keys this record answers; their skipped or 'not sure' states are cleared.
maxLength: 20
maxLength: 100
Idempotency key chosen by the client; a replay with the same key and input returns the first result.
minLength: 1maxLength: 64
rkey
string · record-keyThe parent slot, 1 or 2.
minimum: 1maximum: 2
Output
application/jsonErrors
NotMember
No description in schema.
NotAdmin
No description in schema.
HomeNotFound
No description in schema.
ParentNotLinked
No description in schema.
InvalidRecord
No description in schema.
RecordChanged
No description in schema.
DelegationUnavailable
No description in schema.
PdsUnavailable
No description in schema.
RequestConflict
No description in schema.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
ai.newnal.illi.mydata.deleteRecord
procedureRoot or main admin deletes one My Data record of the parent and its provenance; the previous value goes to the audit log. expectedCid as in putRecord.