Skip to main content
POST
Create Policy

Authorizations

Authorization
string
header
required

Enter your Kubiya API token (format: Bearer )

Body

application/json

Schema for creating a new policy

name
string
required
Required string length: 1 - 255
policy_content
string
required
Minimum string length: 1
description
string | null
enabled
boolean
default:true
tags
string[]
metadata
Metadata · object

Response

Successful Response

Extended policy response with association count

id
string
required
name
string
required
description
string | null
required
organization_id
string
required
enabled
boolean
required
tags
string[]
required
version
integer
required
created_at
string | null
required
updated_at
string | null
required
policy_content
string | null
default:""
created_by
string | null
updated_by
string | null
policy_type
string
default:rego
association_count
integer
default:0