Skip to main content
PATCH
/
forms
/
{formId}
Update a form
curl --request PATCH \
  --url https://api.tally.so/forms/{formId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "blocks": [
    {
      "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "FORM_TITLE",
      "groupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "payload": {
        "html": "<string>",
        "title": "<string>",
        "logo": "<string>",
        "cover": "<string>",
        "coverSettings": {
          "objectPositionYPercent": 50
        },
        "mentions": [
          {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "field": {
              "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "title": "<string>",
              "payload": {}
            },
            "defaultValue": "<unknown>"
          }
        ],
        "button": {
          "label": "<string>"
        }
      }
    }
  ],
  "settings": {
    "language": "<string>",
    "isClosed": false,
    "closeMessageTitle": "<string>",
    "closeMessageDescription": "<string>",
    "closeTimezone": "<string>",
    "closeDate": "<string>",
    "closeTime": "<string>",
    "submissionsLimit": 1,
    "uniqueSubmissionKey": {
      "html": "<string>",
      "mentions": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "field": {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "title": "<string>",
            "payload": {}
          },
          "defaultValue": "<unknown>"
        }
      ]
    },
    "redirectOnCompletion": {
      "html": "<string>",
      "mentions": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "field": {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "title": "<string>",
            "payload": {}
          },
          "defaultValue": "<unknown>"
        }
      ]
    },
    "hasSelfEmailNotifications": false,
    "selfEmailTo": {
      "html": "<string>",
      "mentions": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "field": {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "title": "<string>",
            "payload": {}
          },
          "defaultValue": "<unknown>"
        }
      ]
    },
    "selfEmailReplyTo": {
      "html": "<string>",
      "mentions": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "field": {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "title": "<string>",
            "payload": {}
          },
          "defaultValue": "<unknown>"
        }
      ]
    },
    "selfEmailSubject": {
      "html": "<string>",
      "mentions": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "field": {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "title": "<string>",
            "payload": {}
          },
          "defaultValue": "<unknown>"
        }
      ]
    },
    "selfEmailFromName": {
      "html": "<string>",
      "mentions": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "field": {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "title": "<string>",
            "payload": {}
          },
          "defaultValue": "<unknown>"
        }
      ]
    },
    "selfEmailBody": {
      "html": "<string>",
      "mentions": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "field": {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "title": "<string>",
            "payload": {}
          },
          "defaultValue": "<unknown>"
        }
      ]
    },
    "hasRespondentEmailNotifications": false,
    "respondentEmailTo": {
      "html": "<string>",
      "mentions": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "field": {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "title": "<string>",
            "payload": {}
          },
          "defaultValue": "<unknown>"
        }
      ]
    },
    "respondentEmailReplyTo": {
      "html": "<string>",
      "mentions": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "field": {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "title": "<string>",
            "payload": {}
          },
          "defaultValue": "<unknown>"
        }
      ]
    },
    "respondentEmailSubject": {
      "html": "<string>",
      "mentions": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "field": {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "title": "<string>",
            "payload": {}
          },
          "defaultValue": "<unknown>"
        }
      ]
    },
    "respondentEmailFromName": {
      "html": "<string>",
      "mentions": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "field": {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "title": "<string>",
            "payload": {}
          },
          "defaultValue": "<unknown>"
        }
      ]
    },
    "respondentEmailBody": {
      "html": "<string>",
      "mentions": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "field": {
            "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "title": "<string>",
            "payload": {}
          },
          "defaultValue": "<unknown>"
        }
      ]
    },
    "hasProgressBar": false,
    "hasPartialSubmissions": false,
    "pageAutoJump": false,
    "saveForLater": true,
    "styles": "<string>",
    "password": "<string>",
    "submissionsDataRetentionDuration": 1,
    "submissionsDataRetentionUnit": "<string>"
  }
}
'
import requests

url = "https://api.tally.so/forms/{formId}"

payload = {
"name": "<string>",
"blocks": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "FORM_TITLE",
"groupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payload": {
"html": "<string>",
"title": "<string>",
"logo": "<string>",
"cover": "<string>",
"coverSettings": { "objectPositionYPercent": 50 },
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
],
"button": { "label": "<string>" }
}
}
],
"settings": {
"language": "<string>",
"isClosed": False,
"closeMessageTitle": "<string>",
"closeMessageDescription": "<string>",
"closeTimezone": "<string>",
"closeDate": "<string>",
"closeTime": "<string>",
"submissionsLimit": 1,
"uniqueSubmissionKey": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"redirectOnCompletion": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasSelfEmailNotifications": False,
"selfEmailTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailReplyTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailSubject": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailFromName": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailBody": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasRespondentEmailNotifications": False,
"respondentEmailTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailReplyTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailSubject": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailFromName": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailBody": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasProgressBar": False,
"hasPartialSubmissions": False,
"pageAutoJump": False,
"saveForLater": True,
"styles": "<string>",
"password": "<string>",
"submissionsDataRetentionDuration": 1,
"submissionsDataRetentionUnit": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
blocks: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
type: 'FORM_TITLE',
groupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
payload: {
html: '<string>',
title: '<string>',
logo: '<string>',
cover: '<string>',
coverSettings: {objectPositionYPercent: 50},
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
],
button: {label: '<string>'}
}
}
],
settings: {
language: '<string>',
isClosed: false,
closeMessageTitle: '<string>',
closeMessageDescription: '<string>',
closeTimezone: '<string>',
closeDate: '<string>',
closeTime: '<string>',
submissionsLimit: 1,
uniqueSubmissionKey: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
redirectOnCompletion: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
hasSelfEmailNotifications: false,
selfEmailTo: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
selfEmailReplyTo: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
selfEmailSubject: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
selfEmailFromName: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
selfEmailBody: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
hasRespondentEmailNotifications: false,
respondentEmailTo: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
respondentEmailReplyTo: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
respondentEmailSubject: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
respondentEmailFromName: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
respondentEmailBody: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
hasProgressBar: false,
hasPartialSubmissions: false,
pageAutoJump: false,
saveForLater: true,
styles: '<string>',
password: '<string>',
submissionsDataRetentionDuration: 1,
submissionsDataRetentionUnit: '<string>'
}
})
};

fetch('https://api.tally.so/forms/{formId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tally.so/forms/{formId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'blocks' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'type' => 'FORM_TITLE',
'groupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'payload' => [
'html' => '<string>',
'title' => '<string>',
'logo' => '<string>',
'cover' => '<string>',
'coverSettings' => [
'objectPositionYPercent' => 50
],
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
],
'button' => [
'label' => '<string>'
]
]
]
],
'settings' => [
'language' => '<string>',
'isClosed' => false,
'closeMessageTitle' => '<string>',
'closeMessageDescription' => '<string>',
'closeTimezone' => '<string>',
'closeDate' => '<string>',
'closeTime' => '<string>',
'submissionsLimit' => 1,
'uniqueSubmissionKey' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
]
],
'redirectOnCompletion' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
]
],
'hasSelfEmailNotifications' => false,
'selfEmailTo' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
]
],
'selfEmailReplyTo' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
]
],
'selfEmailSubject' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
]
],
'selfEmailFromName' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
]
],
'selfEmailBody' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
]
],
'hasRespondentEmailNotifications' => false,
'respondentEmailTo' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
]
],
'respondentEmailReplyTo' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
]
],
'respondentEmailSubject' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
]
],
'respondentEmailFromName' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
]
],
'respondentEmailBody' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [

]
],
'defaultValue' => '<unknown>'
]
]
],
'hasProgressBar' => false,
'hasPartialSubmissions' => false,
'pageAutoJump' => false,
'saveForLater' => true,
'styles' => '<string>',
'password' => '<string>',
'submissionsDataRetentionDuration' => 1,
'submissionsDataRetentionUnit' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.tally.so/forms/{formId}"

payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"blocks\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"type\": \"FORM_TITLE\",\n \"groupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"payload\": {\n \"html\": \"<string>\",\n \"title\": \"<string>\",\n \"logo\": \"<string>\",\n \"cover\": \"<string>\",\n \"coverSettings\": {\n \"objectPositionYPercent\": 50\n },\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ],\n \"button\": {\n \"label\": \"<string>\"\n }\n }\n }\n ],\n \"settings\": {\n \"language\": \"<string>\",\n \"isClosed\": false,\n \"closeMessageTitle\": \"<string>\",\n \"closeMessageDescription\": \"<string>\",\n \"closeTimezone\": \"<string>\",\n \"closeDate\": \"<string>\",\n \"closeTime\": \"<string>\",\n \"submissionsLimit\": 1,\n \"uniqueSubmissionKey\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"redirectOnCompletion\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasSelfEmailNotifications\": false,\n \"selfEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasRespondentEmailNotifications\": false,\n \"respondentEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasProgressBar\": false,\n \"hasPartialSubmissions\": false,\n \"pageAutoJump\": false,\n \"saveForLater\": true,\n \"styles\": \"<string>\",\n \"password\": \"<string>\",\n \"submissionsDataRetentionDuration\": 1,\n \"submissionsDataRetentionUnit\": \"<string>\"\n }\n}")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.patch("https://api.tally.so/forms/{formId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"blocks\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"type\": \"FORM_TITLE\",\n \"groupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"payload\": {\n \"html\": \"<string>\",\n \"title\": \"<string>\",\n \"logo\": \"<string>\",\n \"cover\": \"<string>\",\n \"coverSettings\": {\n \"objectPositionYPercent\": 50\n },\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ],\n \"button\": {\n \"label\": \"<string>\"\n }\n }\n }\n ],\n \"settings\": {\n \"language\": \"<string>\",\n \"isClosed\": false,\n \"closeMessageTitle\": \"<string>\",\n \"closeMessageDescription\": \"<string>\",\n \"closeTimezone\": \"<string>\",\n \"closeDate\": \"<string>\",\n \"closeTime\": \"<string>\",\n \"submissionsLimit\": 1,\n \"uniqueSubmissionKey\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"redirectOnCompletion\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasSelfEmailNotifications\": false,\n \"selfEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasRespondentEmailNotifications\": false,\n \"respondentEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasProgressBar\": false,\n \"hasPartialSubmissions\": false,\n \"pageAutoJump\": false,\n \"saveForLater\": true,\n \"styles\": \"<string>\",\n \"password\": \"<string>\",\n \"submissionsDataRetentionDuration\": 1,\n \"submissionsDataRetentionUnit\": \"<string>\"\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.tally.so/forms/{formId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"blocks\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"type\": \"FORM_TITLE\",\n \"groupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"payload\": {\n \"html\": \"<string>\",\n \"title\": \"<string>\",\n \"logo\": \"<string>\",\n \"cover\": \"<string>\",\n \"coverSettings\": {\n \"objectPositionYPercent\": 50\n },\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ],\n \"button\": {\n \"label\": \"<string>\"\n }\n }\n }\n ],\n \"settings\": {\n \"language\": \"<string>\",\n \"isClosed\": false,\n \"closeMessageTitle\": \"<string>\",\n \"closeMessageDescription\": \"<string>\",\n \"closeTimezone\": \"<string>\",\n \"closeDate\": \"<string>\",\n \"closeTime\": \"<string>\",\n \"submissionsLimit\": 1,\n \"uniqueSubmissionKey\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"redirectOnCompletion\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasSelfEmailNotifications\": false,\n \"selfEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasRespondentEmailNotifications\": false,\n \"respondentEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasProgressBar\": false,\n \"hasPartialSubmissions\": false,\n \"pageAutoJump\": false,\n \"saveForLater\": true,\n \"styles\": \"<string>\",\n \"password\": \"<string>\",\n \"submissionsDataRetentionDuration\": 1,\n \"submissionsDataRetentionUnit\": \"<string>\"\n }\n}"

response = http.request(request)
puts response.read_body
{
  "id": "<string>",
  "name": "<string>",
  "workspaceId": "<string>",
  "numberOfSubmissions": 123,
  "isClosed": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "payments": [
    {
      "amount": 123,
      "currency": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

formId
string
required

The ID of the form to update

Body

application/json
name
string

New name for the form

status
enum<string>

New status for the form

Available options:
BLANK,
DRAFT,
PUBLISHED,
DELETED
blocks
(FormTitleBlock · object | TitleBlock · object | TextBlock · object | LabelBlock · object | Heading1Block · object | Heading2Block · object | Heading3Block · object | ImageBlock · object | EmbedBlock · object | EmbedVideoBlock · object | EmbedAudioBlock · object | DividerBlock · object | PageBreakBlock · object | InputTextBlock · object | TextareaBlock · object | InputNumberBlock · object | InputEmailBlock · object | InputLinkBlock · object | InputPhoneNumberBlock · object | InputDateBlock · object | InputTimeBlock · object | MultipleChoiceOptionBlock · object | CheckboxBlock · object | DropdownOptionBlock · object | RankingOptionBlock · object | MultiSelectOptionBlock · object | LinearScaleBlock · object | RatingBlock · object | MatrixBlock · object | MatrixRowBlock · object | MatrixColumnBlock · object | FileUploadBlock · object | SignatureBlock · object | PaymentBlock · object | HiddenFieldsBlock · object | ConditionalLogicBlock · object | CalculatedFieldsBlock · object | CaptchaBlock · object | RespondentCountryBlock · object)[]

Updated blocks for the form

A block with type FORM_TITLE. Used for the main form title with optional logo and cover image.

settings
object

Updated settings for the form

Response

Form updated successfully

id
string
required
name
string
required
workspaceId
string
required
status
enum<string>
required
Available options:
BLANK,
DRAFT,
PUBLISHED,
DELETED
numberOfSubmissions
number
required
isClosed
boolean
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
payments
object[]