# ApiConfigHandler

- [JSON representation](https://docs.cloud.google.com/logging/docs/reference/audit/appengine/rest/Shared.Types/ApiConfigHandler#SCHEMA_REPRESENTATION)

[Cloud Endpoints](https://cloud.google.com/endpoints/) configuration for API handlers.

| JSON representation ||
|---|---|
| ``` { "authFailAction": enum(`https://docs.cloud.google.com/logging/docs/reference/audit/appengine/rest/Shared.Types/AuthFailAction`), "login": enum(`https://docs.cloud.google.com/logging/docs/reference/audit/appengine/rest/Shared.Types/LoginRequirement`), "script": string, "securityLevel": enum(`https://docs.cloud.google.com/logging/docs/reference/audit/appengine/rest/Shared.Types/SecurityLevel`), "url": string } ``` |

| Fields ||
|---|---|
| `authFailAction` | ``enum(`https://docs.cloud.google.com/logging/docs/reference/audit/appengine/rest/Shared.Types/AuthFailAction`)`` Action to take when users access resources that require authentication. Defaults to `redirect`. |
| `login` | ``enum(`https://docs.cloud.google.com/logging/docs/reference/audit/appengine/rest/Shared.Types/LoginRequirement`)`` Level of login required to access this resource. Defaults to `optional`. |
| `script` | `string` Path to the script from the application root directory. |
| `securityLevel` | ``enum(`https://docs.cloud.google.com/logging/docs/reference/audit/appengine/rest/Shared.Types/SecurityLevel`)`` Security (HTTPS) enforcement for this URL. |
| `url` | `string` URL to serve the endpoint at. |