Skip to content

Commit

Permalink
Update src/core/server/deprecations/README.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
  • Loading branch information
Bamieh and alisonelizabeth authored May 26, 2021
1 parent 4097185 commit c6652a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/server/deprecations/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async function getDeprecations({ esClient, savedObjectsClient }: GetDeprecations
The deprecations API allows plugins to provide an API call that can be used to automatically fix specific deprecations.
To do so create a `PUT` or `POST` route in your plugin and specify data you want to be passed in the payload for the deprecation.

In the example above `/internal/security/users/test_dashboard_user` will be called when users click on `Quick Resolve` in the UA. The service will automatically pass the body provided in the api corrective action to provide context to the route for fixing the deprecation.
In the example above, `/internal/security/users/test_dashboard_user` will be called when users click on `Quick Resolve` in the UA. The service will automatically pass the body provided in the api corrective action to provide context to the route for fixing the deprecation.

The deprecations service expects a `200` status code to recognize the corrective action as a success.

Expand Down

0 comments on commit c6652a0

Please sign in to comment.