cURL
curl --request POST \ --url https://guard-api.metatext.ai/v1/applications/{application_id}/policies \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": "<string>", "definition": "<string>", "rules": [ { "type": "factuality", "expected": "pass", "value": "<string>", "threshold": 123, "flagged": [ "<string>" ] } ], "target": [ "input" ], "override_response": "<string>" }'
{ "id": "<string>", "definition": "<string>", "rules": [ { "type": "factuality", "expected": "pass", "value": "<string>", "threshold": 123, "flagged": [ "<string>" ] } ], "target": [ "input" ], "override_response": "<string>" }
Create a new policy for a specific application.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response
The response is of type object.
object