<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.firma.dev/functions/v1/signing-request-api/workspace/{workspace_id}/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'signing_request_email_header' => '<string>',
'signing_request_email_body' => '<string>',
'team_email' => 'jsmith@example.com',
'timezone' => '<string>',
'show_credit_cost_in_editor' => true,
'require_otp_verification' => true,
'require_terms_acceptance' => true,
'disable_guided_navigation' => true,
'show_signature_frame' => true,
'color_primary' => '<string>',
'color_primary_fg' => '<string>',
'color_background' => '<string>',
'color_foreground' => '<string>',
'color_card' => '<string>',
'color_border' => '<string>',
'color_accent' => '<string>',
'color_accent_fg' => '<string>',
'color_canvas' => '<string>',
'color_muted' => '<string>',
'color_muted_fg' => '<string>',
'email_local_part' => '<string>',
'allow_presigning_download' => true,
'show_partial_watermark' => true,
'show_qr_code' => true,
'allow_decline' => true,
'show_save_for_later' => true,
'signing_button_label_overrides' => [
],
'completion_title' => '<string>',
'completion_message' => '<string>',
'completion_redirect_url' => '<string>',
'completion_redirect_delay' => 15
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}