Set user plugin permission grant
Ten poradnik jest dostępny tylko po angielsku.
Czy ta strona jest pomocna?
Ten poradnik jest dostępny tylko po angielsku.
Czy ta strona jest pomocna?
Creates or replaces one explicit plugin permission override.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
user_id*stringuuidpermission_id*stringapplication/jsonscope*soulfire.v1.PluginPermissionScopeThe scope in which a plugin permission is evaluated.
"PLUGIN_PERMISSION_SCOPE_UNSPECIFIED""PLUGIN_PERMISSION_SCOPE_GLOBAL""PLUGIN_PERMISSION_SCOPE_INSTANCE""PLUGIN_PERMISSION_SCOPE_BOT""PLUGIN_PERMISSION_SCOPE_TASK"resourceId?|uuidgranted*booleanAn explicit user-level override for a dynamically registered plugin permission.
application/jsonAn explicit user-level override for a dynamically registered plugin permission. Records remain persisted when a plugin is absent so reinstalling a plugin cannot silently change the meaning of an existing grant.
userId*stringuuidpermissionId*stringscope*soulfire.v1.PluginPermissionScopeThe scope in which a plugin permission is evaluated.
"PLUGIN_PERMISSION_SCOPE_UNSPECIFIED""PLUGIN_PERMISSION_SCOPE_GLOBAL""PLUGIN_PERMISSION_SCOPE_INSTANCE""PLUGIN_PERMISSION_SCOPE_BOT""PLUGIN_PERMISSION_SCOPE_TASK"resourceId?|Empty only for global permissions. Instance, bot, and task permissions use the corresponding resource UUID.
uuidgranted*booleanTrue grants and false explicitly denies the permission.
active*booleanFalse when the owning plugin is not currently installed.
createdAt*stringdate-timeupdatedAt*stringdate-timecurl -X PUT 'http://127.0.0.1:38765/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/plugin-permissions/string' \ -H 'Content-Type: application/json' \ -d '{ "scope": "PLUGIN_PERMISSION_SCOPE_UNSPECIFIED", "granted": true}'{ "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b", "permissionId": "string", "scope": "PLUGIN_PERMISSION_SCOPE_UNSPECIFIED", "resourceId": "string", "granted": true, "active": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}curl -X PUT 'http://127.0.0.1:38765/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/plugin-permissions/string' \
-H 'Content-Type: application/json' \
-d '{
"scope": "PLUGIN_PERMISSION_SCOPE_UNSPECIFIED",
"granted": true
}'{
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"permissionId": "string",
"scope": "PLUGIN_PERMISSION_SCOPE_UNSPECIFIED",
"resourceId": "string",
"granted": true,
"active": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}