Create a Deka Guard policy from YAML data
Creates a Deka Guard policy using the supplied raw policy object.
post
Authorizations
AuthorizationstringRequired
Type 'Bearer ' followed by your JWT token. Example: "Bearer eyJhbGciOi..."
Body
namespacestringRequired
project_idstringRequired
Responses
200
Successful Response
application/json
codeintegerOptionalExample:
200dataanyOptional
messagestringOptionalExample:
Success400
Invalid request
application/json
post/core/deka-guard/yaml
POST /core/deka-guard/yaml HTTP/1.1
Host: ai.cloudeka.id/
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"namespace": "text",
"project_id": "text",
"raw": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}{
"code": 200,
"data": null,
"message": "Success"
}Last updated