Creates the given bot detection policy. If the upsert query param is set to truethen, instead of performing a create, the API will switch to performing an upsert. For an upsert request, the following fields are required:
Required Upsert Fields:
ownerTypeownerId
When performing an upsert, the above fields will be used to determine whether the bot detection policy resource already exists. If the bot detection policy already exists, a partial update will be performed; otherwise, a new bot detection policy entity will be created.
In the response of an upsert request, if a create was performed, then a 201 response code will be returned; otherwise, if an update was performed, then a 200 will be returned.
Required Permissions
Below is the list of required permissions needed to interact with this API. For each permission, the allowed permission boundaries are also specified.
| Permission | Boundary | Description |
|---|---|---|
| bot-detection-policy:write | Application | The subject can create bot detection policies for the application to which the subject belongs. |
| Tenant | The subject can create bot detection policies for the tenant to which it belongs. | |
| Tenant Inclusion List | The subject can create bot detection policies for tenants specified in the tenant inclusion list. | |
| Tenant Exclusion List | The subject can create bot detection policies for tenants in the subject's application that are not on the tenant exclusion list. |