curl --request PATCH \
--url https://platform.thena.ai/v1/csat/rules/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "High Priority Ticket Survey",
"description": "Sends CSAT surveys to customers with high priority tickets",
"isActive": true,
"allFilters": {
"ticket": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "open"
}
],
"customFields": [
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]
},
"account": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "open"
}
],
"customFields": [
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]
},
"contact": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "open"
}
],
"customFields": [
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]
}
},
"anyFilters": {
"ticket": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "open"
}
],
"customFields": [
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]
},
"account": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "open"
}
],
"customFields": [
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]
},
"contact": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "open"
}
],
"customFields": [
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]
}
},
"triggerConfig": {
"triggerType": "always",
"randomPercentage": 10,
"triggerEvent": "ticket_resolved",
"delayMinutes": 30
},
"feedbackConfig": {
"enabled": true,
"feedbackType": "star",
"includeCommentField": true,
"customTitle": "How was your experience?",
"customMessage": "Please rate your satisfaction with our support.",
"customThankYouMessage": "Thank you for your feedback!",
"commentFieldLabel": "Additional Comments",
"commentFieldPlaceholder": "Please share any additional feedback here...",
"brandingColor": "#3366CC",
"deliveryChannel": "email"
},
"priority": 1
}
'{
"data": {
"ok": true,
"data": {
"id": "e4d2a5b1-9c3f-4c8d-b1a2-3e4f5a6b7c8d",
"name": "Updated High Priority Ticket Survey",
"description": "Updated description for high priority ticket surveys",
"isActive": false,
"priority": 10,
"allFilters": {
"ticket": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "closed"
}
],
"customFields": []
},
"account": {
"standardFields": [],
"customFields": []
},
"contact": {
"standardFields": [],
"customFields": []
}
},
"anyFilters": {
"ticket": {
"standardFields": [
{
"field": "priority",
"operator": "=",
"value": "high"
}
],
"customFields": []
},
"account": {
"standardFields": [],
"customFields": []
},
"contact": {
"standardFields": [],
"customFields": []
}
},
"triggerConfig": {
"enabled": true,
"deliveryChannel": "email",
"delayInMinutes": 5
},
"feedbackConfig": {
"enabled": true,
"feedbackType": "thumbs",
"includeCommentField": false,
"brandingColor": "#dc2626"
},
"createdAt": "2023-08-01T12:00:00Z",
"updatedAt": "2023-08-02T14:30:00Z"
}
},
"status": true,
"message": "CSAT rule updated successfully",
"timestamp": "2025-07-15T11:38:09.817Z"
}curl --request PATCH \
--url https://platform.thena.ai/v1/csat/rules/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "High Priority Ticket Survey",
"description": "Sends CSAT surveys to customers with high priority tickets",
"isActive": true,
"allFilters": {
"ticket": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "open"
}
],
"customFields": [
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]
},
"account": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "open"
}
],
"customFields": [
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]
},
"contact": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "open"
}
],
"customFields": [
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]
}
},
"anyFilters": {
"ticket": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "open"
}
],
"customFields": [
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]
},
"account": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "open"
}
],
"customFields": [
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]
},
"contact": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "open"
}
],
"customFields": [
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]
}
},
"triggerConfig": {
"triggerType": "always",
"randomPercentage": 10,
"triggerEvent": "ticket_resolved",
"delayMinutes": 30
},
"feedbackConfig": {
"enabled": true,
"feedbackType": "star",
"includeCommentField": true,
"customTitle": "How was your experience?",
"customMessage": "Please rate your satisfaction with our support.",
"customThankYouMessage": "Thank you for your feedback!",
"commentFieldLabel": "Additional Comments",
"commentFieldPlaceholder": "Please share any additional feedback here...",
"brandingColor": "#3366CC",
"deliveryChannel": "email"
},
"priority": 1
}
'{
"data": {
"ok": true,
"data": {
"id": "e4d2a5b1-9c3f-4c8d-b1a2-3e4f5a6b7c8d",
"name": "Updated High Priority Ticket Survey",
"description": "Updated description for high priority ticket surveys",
"isActive": false,
"priority": 10,
"allFilters": {
"ticket": {
"standardFields": [
{
"field": "status",
"operator": "=",
"value": "closed"
}
],
"customFields": []
},
"account": {
"standardFields": [],
"customFields": []
},
"contact": {
"standardFields": [],
"customFields": []
}
},
"anyFilters": {
"ticket": {
"standardFields": [
{
"field": "priority",
"operator": "=",
"value": "high"
}
],
"customFields": []
},
"account": {
"standardFields": [],
"customFields": []
},
"contact": {
"standardFields": [],
"customFields": []
}
},
"triggerConfig": {
"enabled": true,
"deliveryChannel": "email",
"delayInMinutes": 5
},
"feedbackConfig": {
"enabled": true,
"feedbackType": "thumbs",
"includeCommentField": false,
"brandingColor": "#dc2626"
},
"createdAt": "2023-08-01T12:00:00Z",
"updatedAt": "2023-08-02T14:30:00Z"
}
},
"status": true,
"message": "CSAT rule updated successfully",
"timestamp": "2025-07-15T11:38:09.817Z"
}Enter your API key
Name of the CSAT rule
"High Priority Ticket Survey"
Description of the CSAT rule
"Sends CSAT surveys to customers with high priority tickets"
Whether the rule is active
true
Filters where ALL conditions must be met
Show child attributes
Ticket filters
Show child attributes
Standard field filters
Show child attributes
Field name
"status"
Operator
=, !=, >, <, >=, <=, contains, not_contains, in, not_in, is_empty, is_not_empty "="
Filter value
"open"
[
{
"field": "status",
"operator": "=",
"value": "open"
}
]Custom field filters
Show child attributes
Field name
"custom_CFLLXQWWY4Z"
ID of the custom field
"CFLLXQWWY4Z"
Operator
=, !=, >, <, >=, <=, contains, not_contains, in, not_in, is_empty, is_not_empty "="
Filter value
"This is a custom field value"
[
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]Account filters
Show child attributes
Standard field filters
Show child attributes
Field name
"status"
Operator
=, !=, >, <, >=, <=, contains, not_contains, in, not_in, is_empty, is_not_empty "="
Filter value
"open"
[
{
"field": "status",
"operator": "=",
"value": "open"
}
]Custom field filters
Show child attributes
Field name
"custom_CFLLXQWWY4Z"
ID of the custom field
"CFLLXQWWY4Z"
Operator
=, !=, >, <, >=, <=, contains, not_contains, in, not_in, is_empty, is_not_empty "="
Filter value
"This is a custom field value"
[
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]Contact filters
Show child attributes
Standard field filters
Show child attributes
Field name
"status"
Operator
=, !=, >, <, >=, <=, contains, not_contains, in, not_in, is_empty, is_not_empty "="
Filter value
"open"
[
{
"field": "status",
"operator": "=",
"value": "open"
}
]Custom field filters
Show child attributes
Field name
"custom_CFLLXQWWY4Z"
ID of the custom field
"CFLLXQWWY4Z"
Operator
=, !=, >, <, >=, <=, contains, not_contains, in, not_in, is_empty, is_not_empty "="
Filter value
"This is a custom field value"
[
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]Filters where ANY condition can be met
Show child attributes
Ticket filters
Show child attributes
Standard field filters
Show child attributes
Field name
"status"
Operator
=, !=, >, <, >=, <=, contains, not_contains, in, not_in, is_empty, is_not_empty "="
Filter value
"open"
[
{
"field": "status",
"operator": "=",
"value": "open"
}
]Custom field filters
Show child attributes
Field name
"custom_CFLLXQWWY4Z"
ID of the custom field
"CFLLXQWWY4Z"
Operator
=, !=, >, <, >=, <=, contains, not_contains, in, not_in, is_empty, is_not_empty "="
Filter value
"This is a custom field value"
[
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]Account filters
Show child attributes
Standard field filters
Show child attributes
Field name
"status"
Operator
=, !=, >, <, >=, <=, contains, not_contains, in, not_in, is_empty, is_not_empty "="
Filter value
"open"
[
{
"field": "status",
"operator": "=",
"value": "open"
}
]Custom field filters
Show child attributes
Field name
"custom_CFLLXQWWY4Z"
ID of the custom field
"CFLLXQWWY4Z"
Operator
=, !=, >, <, >=, <=, contains, not_contains, in, not_in, is_empty, is_not_empty "="
Filter value
"This is a custom field value"
[
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]Contact filters
Show child attributes
Standard field filters
Show child attributes
Field name
"status"
Operator
=, !=, >, <, >=, <=, contains, not_contains, in, not_in, is_empty, is_not_empty "="
Filter value
"open"
[
{
"field": "status",
"operator": "=",
"value": "open"
}
]Custom field filters
Show child attributes
Field name
"custom_CFLLXQWWY4Z"
ID of the custom field
"CFLLXQWWY4Z"
Operator
=, !=, >, <, >=, <=, contains, not_contains, in, not_in, is_empty, is_not_empty "="
Filter value
"This is a custom field value"
[
{
"field": "custom_CFLLXQWWY4Z",
"customFieldId": "CFLLXQWWY4Z",
"operator": "=",
"value": "Value"
}
]Configuration for when and how the CSAT survey is triggered
Show child attributes
Type of trigger: always send or randomly send
always, random "always"
Percentage of tickets to randomly select for CSAT (10% or 20%)
10, 20 10
Event that triggers the CSAT survey
ticket_resolved, ticket_closed, time_after_response "ticket_resolved"
Delay in minutes after the trigger event
x >= 030
Configuration for the CSAT survey appearance and behavior
Show child attributes
Whether this feedback configuration is enabled
true
Type of feedback: star rating or thumbs up/down
star, thumbs "star"
Whether to include a comment field in the survey
true
Custom title for the CSAT survey
"How was your experience?"
Custom message for the CSAT survey
"Please rate your satisfaction with our support."
Custom thank you message displayed after survey completion
"Thank you for your feedback!"
Label for the comment field
"Additional Comments"
Placeholder text for the comment field
"Please share any additional feedback here..."
Hex color code for survey branding
"#3366CC"
Delivery channel for the survey
"email"
Priority of the CSAT rule
1
Success - CSAT rule updated successfully