Rollback Agent Config
Roll a config-based agent back to a historical version.
Writes a new version N+1 whose config equals the target’s stored
snapshot, records change_kind='rollback' + rollback_source_version
on the new history row, and redeploys the agent. Never a pointer swap,
never destructive. If current validators reject the historical config
(validator tightening between then and now), returns 422 with Pydantic’s
error text so the FE can highlight the offending fields.
POST
/agents/{job_id}/config/rollbackAuthorization
AuthorizationBearer token · headerrequiredPath parameters
job_idstringrequiredRequest body
requiredapplication/jsontargetVersionintegerrequiredThe existing version number whose config will be copied into a new version. Version 0 is the initial change_kind='create' snapshot.
min 0
notestring | nullOptional user-supplied context - recorded on the new rollback row.
Show propertiesHide properties
Any of:
string
stringnull
nullResponses
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