jointrashposs/content/ja/.docs-legacy/api/endpoints/admin/accounts/create.json5
2023-07-11 23:48:17 +09:00

44 lines
569 B
Plaintext

{
summary: '',
description: '',
tags: [
'admin',
],
requireCredential: false,
req: {
type: 'object',
properties: {
username: {
type: 'string',
pattern: '^\\w{1,20}$',
},
password: {
type: 'string',
minLength: 1,
},
},
required: [
'username',
'password',
],
},
res: {
type: 'object',
optional: false,
nullable: false,
ref: 'User',
properties: {
token: {
type: 'string',
optional: false,
nullable: false,
},
},
required: [
'token',
],
$ref: 'misskey://User',
},
errors: {},
}