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