formcierge_rest_form_updated
Action

Since v1.0.0

Fires after a form is updated via the REST API. Use for audit trails or cache invalidation in external systems that store form schemas.

Parameters
$form_id int The ID of the updated form.
$data array The updated form data array.
Defined in
includes/API/FormsEndpoint.php
add_action( 'formcierge_rest_form_updated', function ( $form_id, $data ) {
    delete_transient( 'my_form_cache_' . $form_id );
}, 10, 2 );