Update Recommendation Session
Modifies an existing recommendation session's parameters or triggers lifecycle actions like re-run or cancel analysis.
Notes:
- Use the
actionfield to trigger specific operations:ANALYZE(re-runs analysis) orCANCEL(stops an in-progress analysis). - Side Effect: Triggering an
ANALYZEaction will clean up any existing recommendation results for this session. - Certain configuration updates may be rejected if an analysis is currently in progress.
The id of the resource
The updated recommendation session configuration. Can include modifications to monitoring settings, context inputs, analysis parameters, or action triggers (ANALYZE/CANCEL). Only fields that are being updated need to be included.
{
"id": "c5ab3a5e-55d1-4f8e-b51a-0c065381dcd6",
"_revision": 2,
"display_name": "REC 260507 11:59:56",
"description": "Recommendation created on 5/7/26, 11:59 AM",
"site_ids": [
"9e0865d0-9d89-44c7-8cc0-9f96a9b35721"
],
"start_time": 1776549743681,
"time_interval": {
"end_time": 1779141743681,
"start_time": 1776549743681
},
"monitoring_enabled": false,
"action": "ANALYZE",
"recommendation_type": "APPLICATION",
"context_application": {
"id": "301c802a-b183-40a6-9b26-bace5038ad80",
"display_name": "R1_Z1_Env1_APP1",
"site_ids": [
"9e0865d0-9d89-44c7-8cc0-9f96a9b35721"
]
},
"segmentation_strategies": [],
"connectivity_preference": "NONE",
"connectivity_preference_logging_enabled": false,
"exclude_multicast_flows": true,
"exclude_broadcast_flows": true,
"policy_type": "L4",
"additional_rules": []
}
The recommendation session update request has been accepted and is being processed asynchronously. This typically occurs when an action (such as ANALYZE or CANCEL) is triggered that requires background processing. The response includes an async operation identifier for tracking the update status.
{
"id": "55115cba-17bc-4cd1-b29f-b78bc1639446",
"status_url": "https://<ssp_host>/intelligence/recommendations/55115cba-17bc-4cd1-b29f-b78bc1639446/status"
}
UUID identifier of the response.
The URL to check the status of the operation.
Bad Request
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Error
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/intelligence/recommendations/{id}