Update Segmentation Session
Updates a segmentation session. This endpoint is used to trigger actions on the session such as starting analysis. If an action can be cancelled, such as analysis, then the action can be cancelled by setting the corresponding cancel action.
Only the 'action' field is writable. All other fields, including those inherited from ManagedResource (such as display_name, description, tags, etc.), are read-only and will be ignored if provided in the request. The _revision field from ManagedResource must be provided for optimistic locking and is auto-incremented by the server.
Notes
- There are 4 separate actions that a user can invoke on the session
PARSE_FILE,START_ANALYSIS,RERUN_ANALYSIS,CANCEL_ANALYSIS - File Validation happens implicitly on file upload as part of session creation, details for this are in
POST /segmentation. PARSE_FILE: requiresstatusto beFILE_READY_TO_PARSE. Ensure CSV column mappings are configured viaPUT /{session-id}/settingsfirst. PollGET /{session-id}/statusuntilFILE_PARSEDorFILE_PARSING_ERROR.START_ANALYSIS: for starting a fresh analysis after a successful parsing of the csv file. Requiresstatusto beFILE_PARSED. PollGET /{session-id}/statusuntilANALYSIS_SUCCESSorANALYSIS_ERRORafter triggering.RERUN_ANALYSIS: for rerunning the analysis. Requires status to beANALYSIS_SUCCESSorANALYSIS_ERROR. PollGET /{session-id}/statusuntilANALYSIS_SUCCESSorANALYSIS_ERRORafter triggering.CANCEL_ANALYSIS: for cancelling an analysis which is pending or already in progress. Requires status to beANALYSIS_PENDINGorANALYSIS_IN_PROGRESS.- Returns 202 on success along with
/{session-id}/statusurl on which to poll the triggered action.
Unique identifier of the segmentation session
Segmentation session object with updated fields
{
"action": "PARSE_FILE",
"_create_user": "admin",
"_create_time": 1781138986293,
"_last_modified_user": "admin",
"_last_modified_time": 1781138986293,
"_revision": 0
}
Update accepted and processing asynchronously
{
"id": "aaaa1111-bbbb-2222-cccc-3333dddd4444",
"status_url": "/segmentation/aaaa1111-bbbb-2222-cccc-3333dddd4444/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.
Unexpected 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 '{"action":"string"}' https://{api_host}/ssp/segmentation/{session-id}