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_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | UserPatchInput |
application/merge-patch+json | UserPatchInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json User または object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
User
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
department | string または null | 必須 | The department's name; null when none. |
display_name | string | 必須 | |
email | string または null | 必須 | |
email_notification | boolean または null | 必須 | Null without View Notification Preferences. |
first_active_at | string (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_name | string または null | 必須 | |
is_active | boolean | 必須 | |
is_external | boolean | 必須 | |
is_non_billable | boolean または 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_verified | boolean または 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_at | string (date-time) または null | 必須 | The latest sign-in to this organisation; null under the same conditions as first_active_at. |
organisation_id | string または null | 必須 | |
surname | string または null | 必須 | |
user_id | string | 必須 | |
username | string または null | 必須 | The username and document-number prefix. |
UserPatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
department | string または null | 任意 | |
display_name | string または null | 任意 | |
email | string または null | 任意 | |
email_notification | boolean または null | 任意 | |
first_active_at | string (date-time) または null | 任意 | |
first_name | string または null | 任意 | |
is_active | boolean または null | 任意 | |
is_external | boolean または null | 任意 | |
is_non_billable | boolean または null | 任意 | |
is_verified | boolean または null | 任意 | |
last_active_at | string (date-time) または null | 任意 | |
organisation_id | string または null | 任意 | |
surname | string または null | 任意 | |
user_id | string または null | 任意 | |
username | string または null | 任意 |