Skip to main content
POST
Compile policy

Authorizations

klef.session
string
cookie
required

Cookie-based session. Obtain by completing the /auth/login/{provider} OAuth flow; the /auth/callback response sets the klef.session cookie that subsequent requests send automatically.

Body

application/json

PolicyId names the policy the document would be saved over, so the answer can say what the save changes; leave it out for a document that is not saved anywhere.

source
string
required
Minimum string length: 1
policyId
null | string<uuid>

Response

OK

The envelope for a single-resource response: T? ApiResponse<T>.Result on success, otherwise null with one or more IReadOnlyList<ApiError> ApiResponse<T>.Errors.

result
null | object
required

What the document means. Policy is null when the document could not be understood well enough to describe one.

errors
object[]
required