Applies an object version's data onto that object. (Currently only works with Form versions)
The ID of the version being applied to an object.
The ID of the object which is being modified.
The type of object being modified by this function, currently only Form objects.
FM_api('Undo_apply', [ 'id'=>'90002', 'obj_id'=>'580335', 'obj_type'=>'forms' ] );
If the "id" parameter is not set or has a value less than 1:
If the "obj_id" parameter is not set or has a value less than 1:
If "obj_type" parameter is not set or does not have the value "forms":
If a version is not found which fits the "id", "obj_id" and "obj_type" parameters:
Last updated 2 years ago
{"ok":1}
{"error":"missing or invalid parameter: id"}
{"error":"missing or invalid parameter: obj_id"}
{"error":"invalid obj_type"}
{"error":"undo entry does not exist"}