同期対象の設定を書き込む。既読位置は (indexedAt, uri) が進むときだけ更新する単調マージ、お気に入りは updatedAt による後勝ち。どちらも省略でき、送った分だけが更新される。
Input
application/jsonemojiFavorites
array
Optional
No description available.
maxLength: 32 itemsemojiFavoritesUpdatedAt
stringdatetime
Optional
emojiFavorites を送るときは必須。保存済みより古ければ書き込まない。
feedTabs
array
Optional
No description available.
maxLength: 16 itemsfeedTabsUpdatedAt
stringdatetime
Optional
feedTabs を送るときは必須。保存済みより古ければ書き込まない。
preferredName
string
Optional
botたんに呼んでほしい名前。空文字を送ると登録を解除し、表示名に戻す。送らなければ変更しない。
maxLength: 120 bytesmaxGraphemes: 40 graphemesreadPositions
array
Optional
No description available.
maxLength: 16 itemsreplyFreq
integer
Optional
botたんからの返信確率(0〜100%)。送らなければ変更しない。
minimum: 0maximum: 100Output
application/jsonemojiFavorites
array
Required
No description available.
emojiFavoritesUpdatedAt
stringdatetime
Optional
An RFC 3339 formatted timestamp.
feedTabs
array
Optional
No description available.
feedTabsUpdatedAt
stringdatetime
Optional
An RFC 3339 formatted timestamp.
preferredName
string
Optional
botたんに呼んでほしい名前。省略時は未設定=表示名で呼ばれる。
readPositions
array
Required
マージ後の確定値。送った位置が負けた場合は保存済みの方が返る。
replyFreq
integer
Optional
botたんからの返信確率(0〜100%)。
Errors
AuthRequired
InvalidRequest
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "procedure",
"input": {
"schema": {
"type": "object",
"properties": {
"feedTabs": {
"type": "array",
"items": {
"ref": "com.suibari.nagi.getPreferences#feedTab",
"type": "ref"
},
"maxLength": 16
},
"replyFreq": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "botたんからの返信確率(0〜100%)。送らなければ変更しない。"
},
"preferredName": {
"type": "string",
"maxLength": 120,
"description": "botたんに呼んでほしい名前。空文字を送ると登録を解除し、表示名に戻す。送らなければ変更しない。",
"maxGraphemes": 40
},
"readPositions": {
"type": "array",
"items": {
"ref": "com.suibari.nagi.getPreferences#readPosition",
"type": "ref"
},
"maxLength": 16
},
"emojiFavorites": {
"type": "array",
"items": {
"type": "unknown"
},
"maxLength": 32
},
"feedTabsUpdatedAt": {
"type": "string",
"format": "datetime",
"description": "feedTabs を送るときは必須。保存済みより古ければ書き込まない。"
},
"emojiFavoritesUpdatedAt": {
"type": "string",
"format": "datetime",
"description": "emojiFavorites を送るときは必須。保存済みより古ければ書き込まない。"
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "AuthRequired"
},
{
"name": "InvalidRequest"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"readPositions",
"emojiFavorites"
],
"properties": {
"feedTabs": {
"type": "array",
"items": {
"ref": "com.suibari.nagi.getPreferences#feedTab",
"type": "ref"
},
"maxLength": 16
},
"replyFreq": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "botたんからの返信確率(0〜100%)。"
},
"preferredName": {
"type": "string",
"maxLength": 120,
"description": "botたんに呼んでほしい名前。省略時は未設定=表示名で呼ばれる。",
"maxGraphemes": 40
},
"readPositions": {
"type": "array",
"items": {
"ref": "com.suibari.nagi.getPreferences#readPosition",
"type": "ref"
},
"description": "マージ後の確定値。送った位置が負けた場合は保存済みの方が返る。"
},
"emojiFavorites": {
"type": "array",
"items": {
"type": "unknown"
},
"maxLength": 32
},
"feedTabsUpdatedAt": {
"type": "string",
"format": "datetime"
},
"emojiFavoritesUpdatedAt": {
"type": "string",
"format": "datetime"
}
}
},
"encoding": "application/json"
},
"description": "同期対象の設定を書き込む。既読位置は (indexedAt, uri) が進むときだけ更新する単調マージ、お気に入りは updatedAt による後勝ち。どちらも省略でき、送った分だけが更新される。"
}