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

89 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
summary: 'ユーザーの情報を取得します。',
description: 'ユーザーの情報を取得します。',
tags: [
'users',
],
requireCredential: false,
req: {
type: 'object',
anyOf: [
{
properties: {
userId: {
type: 'string',
format: 'misskey:id',
description: 'ユーザーのid。',
},
},
required: [
'userId',
],
},
{
properties: {
userIds: {
type: 'array',
uniqueItems: true,
items: {
type: 'string',
format: 'misskey:id',
description: 'ユーザーのid。',
},
},
},
required: [
'userIds',
],
},
{
properties: {
username: {
type: 'string',
description: 'ユーザー名。',
},
host: {
type: 'string',
nullable: true,
description: 'ユーザーが所属するサーバーのホスト名ドメインなど。ローカルユーザーを対象にする場合はnullを指定します。',
},
},
required: [
'username',
],
},
],
},
res: {
optional: false,
nullable: false,
oneOf: [
{
type: 'object',
ref: 'UserDetailed',
$ref: 'misskey://UserDetailed',
},
{
type: 'array',
items: {
type: 'object',
ref: 'UserDetailed',
$ref: 'misskey://UserDetailed',
},
},
],
},
errors: {
'ef7b9be4-9cba-4e6f-ab41-90ed171c7d3c': {
id: 'ef7b9be4-9cba-4e6f-ab41-90ed171c7d3c',
code: 'FAILED_TO_RESOLVE_REMOTE_USER',
description: 'リモートユーザーの検索に失敗しました。',
},
'4362f8dc-731f-4ad8-a694-be5a88922a24': {
id: '4362f8dc-731f-4ad8-a694-be5a88922a24',
code: 'NO_SUCH_USER',
description: 'ユーザーが存在しません。',
},
},
}