Enable a user.
POST/api/v1/users/{user_id}/enableusers:admin
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Activates a disabled account.
| スコープ | users:admin (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | enable_user |
| Portal の権限 | change_user_status |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
user_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json User または object |
400 | invalid_version | 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 |
409 | idempotency_in_progress | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, 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. |