policies
Source Viewset
post/policies/expression/
Request body
namestring required
execution_loggingboolean
When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
expressionstring required
Response
pkstring uuid required
namestring required
execution_loggingboolean
When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
componentstring required
Get object component so that we know how to edit the object
verbose_namestring required
Return object's verbose_name
verbose_name_pluralstring required
Return object's plural verbose_name
meta_model_namestring required
Return internal model name
bound_tointeger required
Return objects policy is bound to
expressionstring required