Skip to main content
POST
Create Policy

Authorizations

CORGEA-TOKEN
string
header
required

API key for authentication

Body

application/json
policy_type
enum<string>
required
Available options:
BLAST,
scan,
false_positive,
fix
description
string
required
Minimum string length: 10
name
string
required
Minimum string length: 3
cwes
string[] | null
excludes
string[] | null
projects
(string | integer)[] | null

Project names or IDs that scope the policy. Empty or null creates a company-wide policy.

active
boolean
default:true
instruction_type
enum<string>
default:overwrite
Available options:
overwrite,
append
glob_pattern
string | null
Maximum string length: 255
guidance_text
string | null
Maximum string length: 3000

Response

Policy created successfully

policy
object