create

View as Markdown
### Create Project Rule This endpoint allows the user to create a new rule for a specific project within their account. #### Request Body - `name` (string): The name of the rule. - `action` (string): The action to be performed by the rule (e.g., "block"). - `isActive` (boolean): Indicates whether the rule is active or not. - `condition` (object): The condition that triggers the rule. - `fieldName` (string): The field name to be evaluated. - `predicate` (string): The comparison predicate (e.g., "EQ" for equal). - `value` (string): The value to compare against. - `type` (string): The type of condition (e.g., "criteria"). #### Response The response for this request is a JSON object representing the created rule. As per user's request, the JSON schema for the response is as follows: ``` json { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "action": { "type": "string" }, "isActive": { "type": "boolean" }, "condition": { "type": "object", "properties": { "fieldName": { "type": "string" }, "predicate": { "type": "string" }, "value": { "type": "string" }, "type": { "type": "string" } } } } } ```

Path parameters

account_idstringRequired
project_idstringRequired

Request

This endpoint expects an object.

Response headers

Content-Lengthinteger
Connectionstring

Response

success