Create an attribute to represent the age rating of the meme being requested.
- From the PingAuthorize Policy Editor, go to Trust Framework and click Attributes.
- From the + menu, select Add new Attribute.
-
For the name, replace Untitled with
Meme game answer rating
. -
Verify that in the Parent field, no parent is
selected.
To remove a parent, click the delete icon to the right of the Parent field.
- Click the + next to Resolvers and click + Add Resolver.
- For Resolver type, select Attribute and specify a value of HttpRequest.ResponseBody.
- Click the + next to Value Processors and click + Add Processor.
-
For Processor, select JSON Path
and specify a value of
$.data.attributes.rating
. - For the processor's Value type, select Number.
- For Value Settings, set the Type to Number.
-
Click Save changes.
You have a new attribute for the answer's age rating.