Skip to main content
PUT
Replace a policy's document.

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.

Headers

If-Match
string
required

Strong ETag (e.g. "3") of the resource's current version, from the most recent GET or write. Required for the write to proceed; a missing header returns 428, a malformed value returns 400.

Path Parameters

id
string<uuid>
required

Body

application/json
source
string
required
Minimum string length: 1

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
errors
object[]
required