jointrashposs/content/ja/.docs-legacy/api/endpoints/notifications/read.json5

51 lines
966 B
Plaintext
Raw Normal View History

2023-07-08 10:36:02 +02:00
{
summary: '指定された通知を既読にします。',
description: '指定された通知を既読にします。',
tags: [
'notifications',
],
requireCredential: true,
req: {
oneOf: [
{
type: 'object',
properties: {
notificationId: {
type: 'string',
format: 'misskey:id',
description: '既読にする通知のid。',
},
},
required: [
'notificationId',
],
},
{
type: 'object',
properties: {
notificationIds: {
type: 'array',
items: {
type: 'string',
format: 'misskey:id',
description: '既読にする通知のidの配列。',
},
maxItems: 100,
},
},
required: [
'notificationIds',
],
},
],
},
res: {},
errors: {
'efa929d5-05b5-47d1-beec-e6a4dbed011e': {
id: 'efa929d5-05b5-47d1-beec-e6a4dbed011e',
code: 'NO_SUCH_NOTIFICATION',
description: '通知が存在しません。',
},
},
}