jointrashposs/content/ja/.docs-legacy/api/endpoints/admin/promo/create.json5

37 lines
603 B
Plaintext
Raw Normal View History

2023-07-08 10:36:02 +02:00
{
summary: '',
description: '',
tags: [
'admin',
],
requireCredential: true,
req: {
type: 'object',
properties: {
noteId: {
type: 'string',
format: 'misskey:id',
},
expiresAt: {
type: 'integer',
},
},
required: [
'noteId',
'expiresAt',
],
},
res: {},
errors: {
'ee449fbe-af2a-453b-9cae-cf2fe7c895fc': {
id: 'ee449fbe-af2a-453b-9cae-cf2fe7c895fc',
code: 'NO_SUCH_NOTE',
description: '',
},
'ae427aa2-7a41-484f-a18c-2c1104051604': {
id: 'ae427aa2-7a41-484f-a18c-2c1104051604',
code: 'ALREADY_PROMOTED',
description: '',
},
},
}