YouTrack および Hub ヘルプの開発者ポータル

設定のユーザーにユーザーを追加する

リクエスト

POST <REST API URL>/settings/{setting id}/users?fields=string

パラメーター

説明

fields

オプション。各ユーザーのフィールドの指定されたサブセットのみを返します。フィールド構文を使用してサブセットを定義します。

リクエスト本体

ユーザー

AuthorityHolder を拡張します

InvitationUserOrganizationMemberprojectTeamMember によって拡張されました

{ "login": string, "banned": boolean, "banReason": string, "banBadge": string, "guest": boolean, "avatar": avatar, "profile": profile, "groups": [userGroup, ...], "organizations": [organization, ...], "transitiveOrganizations": [organization, ...], "transitiveGroups": [userGroup, ...], "teams": [projectTeam, ...], "transitiveTeams": [projectTeam, ...], "details": [details, ...], "VCSUserNames": [vcsUserName, ...], "sshPublicKeys": [sshPublicKey, ...], "licenses": [license, ...], "helpdeskProjectSettings": [projectHelpdeskSettings, ...], "creationTime": calendar, "lastAccessTime": calendar, "refreshTokens": [refreshToken, ...], "permanentTokens": [permanentToken, ...], "approvedScopes": [approvedScope, ...], "applicationPasswords": [applicationPassword, ...], "favoriteProjects": [project, ...], "endUserAgreementConsent": endUserAgreementConsent, "eraseTimestamp": calendar, "twoFactorAuthentication": twoFactorAuthentication, "requiredTwoFactorAuthentication": boolean, "pendingTwoFactorAuthentication": twoFactorAuthenticationSecret, "webauthnDevice": webauthnDevice, "userType": userType, "id": string /* from authorityHolder */, "aliases": [alias, ...] /* from authorityHolder */, "name": string /* from authorityHolder */, "projectRoles": [projectRole, ...] /* from authorityHolder */, "transitiveProjectRoles": [projectRole, ...] /* from authorityHolder */, "sourcedProjectRoles": [sourcedProjectRole, ...] /* from authorityHolder */, "organizationRoles": [organizationRole, ...] /* from authorityHolder */, "transitiveOrganizationRoles": [organizationRole, ...] /* from authorityHolder */, "sourcedOrganizationRoles": [sourcedOrganizationRole, ...] /* from authorityHolder */ }

レスポンス

レスポンスコード

意味

200 OK

リクエストが成功しました。

400 不正な要求

リクエストパラメーターの少なくとも 1 つが無効です。例: 渡された JSON オブジェクトの必須フィールドがありません。詳細については、応答のエラーメッセージを確認してください。

403 禁止します

要求元は、要求されたリソースにアクセスできません。

404 お探しのページが見つかりませんでした

要求されたリソースが見つかりませんでした。

500 内部サーバーエラー

サーバーエラーのため、リクエストの処理に失敗しました。詳細については、応答のエラーメッセージを確認してください。

レスポンスボディ

{ "login": string, "banned": boolean, "banReason": string, "banBadge": string, "guest": boolean, "avatar": avatar, "profile": profile, "groups": [userGroup, ...], "organizations": [organization, ...], "transitiveOrganizations": [organization, ...], "transitiveGroups": [userGroup, ...], "teams": [projectTeam, ...], "transitiveTeams": [projectTeam, ...], "details": [details, ...], "VCSUserNames": [vcsUserName, ...], "sshPublicKeys": [sshPublicKey, ...], "licenses": [license, ...], "helpdeskProjectSettings": [projectHelpdeskSettings, ...], "creationTime": calendar, "lastAccessTime": calendar, "refreshTokens": [refreshToken, ...], "permanentTokens": [permanentToken, ...], "approvedScopes": [approvedScope, ...], "applicationPasswords": [applicationPassword, ...], "favoriteProjects": [project, ...], "endUserAgreementConsent": endUserAgreementConsent, "eraseTimestamp": calendar, "twoFactorAuthentication": twoFactorAuthentication, "requiredTwoFactorAuthentication": boolean, "pendingTwoFactorAuthentication": twoFactorAuthenticationSecret, "webauthnDevice": webauthnDevice, "userType": userType, "id": string /* from authorityHolder */, "aliases": [alias, ...] /* from authorityHolder */, "name": string /* from authorityHolder */, "projectRoles": [projectRole, ...] /* from authorityHolder */, "transitiveProjectRoles": [projectRole, ...] /* from authorityHolder */, "sourcedProjectRoles": [sourcedProjectRole, ...] /* from authorityHolder */, "organizationRoles": [organizationRole, ...] /* from authorityHolder */, "transitiveOrganizationRoles": [organizationRole, ...] /* from authorityHolder */, "sourcedOrganizationRoles": [sourcedOrganizationRole, ...] /* from authorityHolder */ }