Cancel Agent
Gracefully cancel a running agent WITH savepoint.
Creates a savepoint before stopping - use this when you want to resume later. The savepoint path is stored and used automatically on redeploy.
POST
/agents/{job_id}/cancelAuthorization
AuthorizationBearer token · headerrequiredPath parameters
job_idstringrequiredResponses
200
Successful Response
_idstringrequirednamestringrequiredjob_typeapp__models__api__agents_api_models__flink_jobs__FlinkJobTypeEnumrequiredAllowed:
pyflinkjaragent_configknowledge_basestatusFlinkJobStatusEnumrequiredAllowed:
CREATEDDEPLOYINGRUNNINGCANCELLINGCANCELLEDFAILEDFINISHEDdesired_statusFlinkJobStatusEnum | nullShow propertiesHide properties
Any of:
FlinkJobStatusEnum
stringnull
nullflink_job_namestringrequiredflink_job_idstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullparallelismintegerdefault: 1
error_messagestring | nullShow propertiesHide properties
Any of:
string
stringnull
nullagent_configobject | nullShow propertiesHide properties
Any of:
object
objectnull
nullcreated_bystring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcreated_timestampstring<date-time> | nullShow propertiesHide properties
Any of:
string<date-time>
string<date-time>null
nullupdated_timestampstring<date-time> | nullShow propertiesHide properties
Any of:
string<date-time>
string<date-time>null
null422
Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobject