gravityflow_response_message_webhook

The gravityflow_response_message_webhook filter allow the status message for the outgoing webhook step to be modified before it is added to the timeline (displayed at bottom of entry details via the inbox or status pages). The initial value of the message indicates the HTTP response code, message and the corresponding status of the step, such as "204 No Content (Success)"

Example:

add_filter( 'gravityflow_response_message_webhook', 'sh_filter_gravityflow_response_message_webhook', 10, 6 );
function sh_filter_gravityflow_response_message_webhook( $http_response_message, $step_status, $response, $args, $entry, $step ) {
	//Append the request JSON body to the response message for timeline
	$http_response_message .= $args['body'];
        return $http_response_message;
}

If you are aiming to change the step status along with the message you will also need to filter gravityflow_step_status_webhook.

Placement

This code should be placed in the functions.php file of your active theme.