Update Rule
Update Rule
Path Parameters
The Content Generation id.
The id
Request Body required
- Array [
- ]
fixes object[]
The list of fixes to apply when the rule validation fails.
Possible values: [FIND_AND_REPLACE
, OPEN_AI
, APPEND
]
Possible values: [RECOMMENDED
, REQUIRED
]
The rule level.
The rule name.
The rule type, one of field
, word
or code
. By default field
.
Possible values: [EVERYWHERE
, FIRST_SENTENCE
, LAST_SENTENCE
]
The left hand side operand for what condition.
The right hand side operand for what condition.
Possible values: [CONTAINS
, DOESNT_CONTAIN
, ENDS_WITH
]
The operator for what condition.
The left hand side operand for when condition.
The right hand side operand for when condition.
Possible values: [ALWAYS
, EQUALS
, NOT_EQUALS
]
The operator for when condition.
- 200
- 401
- 404
Found.
Schema
- Array [
- ]
The parent content generation id.
Description for the rule
fixes object[]
The list of fixes to apply when the rule validation fails.
Possible values: [FIND_AND_REPLACE
, OPEN_AI
, APPEND
]
Possible values: [RECOMMENDED
, REQUIRED
]
The rule level.
The rule name.
The rule type, one of field
, word
or code
. By default field
.
Possible values: [EVERYWHERE
, FIRST_SENTENCE
, LAST_SENTENCE
]
The left hand side operand for what condition.
The right hand side operand for what condition.
Possible values: [CONTAINS
, DOESNT_CONTAIN
, ENDS_WITH
]
The operator for what condition.
The left hand side operand for when condition.
The right hand side operand for when condition.
Possible values: [ALWAYS
, EQUALS
, NOT_EQUALS
]
The operator for when condition.
{
"content_generation_id": 0,
"description": "string",
"fixes": [
{
"type": "FIND_AND_REPLACE",
"what": "string",
"with": "string"
}
],
"id": 0,
"level": "RECOMMENDED",
"name": "string",
"type": "string",
"what_operand_lhs": "EVERYWHERE",
"what_operand_rhs": "string",
"what_operator": "CONTAINS",
"when_operand_lhs": "string",
"when_operand_rhs": "string",
"when_operator": "ALWAYS"
}
Authentication Failure
Not Found