Add event for users.update.prefs
This commit is contained in:
parent
4a26ce28de
commit
192ba00e3f
2 changed files with 6 additions and 0 deletions
|
@ -117,6 +117,11 @@ return [
|
||||||
'model' => Response::MODEL_USER,
|
'model' => Response::MODEL_USER,
|
||||||
'note' => 'version >= 0.7',
|
'note' => 'version >= 0.7',
|
||||||
],
|
],
|
||||||
|
'users.update.prefs' => [
|
||||||
|
'description' => 'This event triggers when a user preference is updated from the users API.',
|
||||||
|
'model' => Response::MODEL_USER,
|
||||||
|
'note' => 'version >= 0.7',
|
||||||
|
],
|
||||||
'users.update.status' => [
|
'users.update.status' => [
|
||||||
'description' => 'This event triggers when a user status is updated from the users API.',
|
'description' => 'This event triggers when a user status is updated from the users API.',
|
||||||
'model' => Response::MODEL_USER,
|
'model' => Response::MODEL_USER,
|
||||||
|
|
|
@ -373,6 +373,7 @@ App::patch('/v1/users/:userId/status')
|
||||||
App::patch('/v1/users/:userId/prefs')
|
App::patch('/v1/users/:userId/prefs')
|
||||||
->desc('Update User Preferences')
|
->desc('Update User Preferences')
|
||||||
->groups(['api', 'users'])
|
->groups(['api', 'users'])
|
||||||
|
->label('event', 'users.update.prefs')
|
||||||
->label('scope', 'users.write')
|
->label('scope', 'users.write')
|
||||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||||
->label('sdk.namespace', 'users')
|
->label('sdk.namespace', 'users')
|
||||||
|
|
Loading…
Reference in a new issue