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

Grant a permission to a user.

POST/api/v1/users/{user_id}/permissionspermissions:admin
注記

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

Grants one app permission to the user directly, including yourself. You must currently hold the granted permission or Delegate Permissions Beyond Own Access. A permission the user already holds directly is refused (409 already_exists).

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

パラメーター​

名前場所型必須説明
user_idpathstring必須
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonPermissionGrantInput

応答​

ステータス説明本文
201Success.application/json Permission または 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
409already_exists, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

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

スキーマ​

Permission​

フィールド型必須説明
permissionstring必須The permission's name, as the Portal shows it.
permission_idstring必須The permission's stable key.

PermissionGrantInput​

フィールド型必須説明
permission_idstring必須