メインコンテンツまでスキップ

Update a user (JSON Merge Patch).

PATCH/api/v1/users/{user_id}users:admin
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Changes the user's first name and surname (written to the company and to the sign-in identity, as the Admin Console does), organisation, department, external flag and e-mail notification. Changing a name also requires Edit User Profiles, and changing the e-mail notification requires Edit Notification Preferences. The e-mail address, username, active state and the sign-in details are read-only here.

スコープusers:admin (機密性の高いスコープ)
非同期いいえ
MCP ツールupdate_user
Portal の権限edit_users

パラメーター​

名前場所型必須説明
user_idpathstring必須
Docwize-Versionheaderstring (date)任意
If-Matchheaderstring任意

リクエスト本文​

Content-Type型
application/jsonUserPatchInput
application/merge-patch+jsonUserPatchInput

応答​

ステータス説明本文
200Success.application/json User または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

User​

フィールド型必須説明
departmentstring または null必須The department's name; null when none.
display_namestring必須
emailstring または null必須
email_notificationboolean または null必須Null without View Notification Preferences.
first_active_atstring (date-time) または null必須The first sign-in to this organisation; null when the person never signed in, without View User Activity, or when the sign-in service could not be read.
first_namestring または null必須
is_activeboolean必須
is_externalboolean必須
is_non_billableboolean または null必須True for a Docwize consultant, who is not billed as a user. Null without View Licenses, or when the consultant list could not be read.
is_verifiedboolean または null必須True once the person accepted the invitation and verified the sign-in; false while the invitation is pending or the person has no sign-in. Null when the sign-in service could not be read (a warning says so).
last_active_atstring (date-time) または null必須The latest sign-in to this organisation; null under the same conditions as first_active_at.
organisation_idstring または null必須
surnamestring または null必須
user_idstring必須
usernamestring または null必須The username and document-number prefix.

UserPatchInput​

フィールド型必須説明
departmentstring または null任意
display_namestring または null任意
emailstring または null任意
email_notificationboolean または null任意
first_active_atstring (date-time) または null任意
first_namestring または null任意
is_activeboolean または null任意
is_externalboolean または null任意
is_non_billableboolean または null任意
is_verifiedboolean または null任意
last_active_atstring (date-time) または null任意
organisation_idstring または null任意
surnamestring または null任意
user_idstring または null任意
usernamestring または null任意