v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Add an endpoint exception

Adds an exception to the endpoint protection settings

post/endpoint-protection/{ecosystem}/exceptions

Path parameters

ecosystem'npm' | 'pypi' | 'vscode' | 'open_vsx' | 'maven' | 'nuget' | 'chrome' | 'golang' | 'skills_sh' required

The ecosystem to list the exceptions for

Request body

package_namestring

The name of the package

status'allowed' | 'blocked'

The status of the exception. 'allowed' means the package is allowed to be installed, 'blocked' means the package is blocked from being installed.

permission_group_idinteger

The ID of the permission group related to the exception

bypass_default_minimum_allowed_ageboolean

Whether the exception bypasses the default minimum allowed age on installation. This is only applicable for allowed exceptions.

Response

The ID of the exception

package_exception_idinteger

The ID of the newly added exception

Example response

{
  "package_exception_id": 1
}