Basics
Adding blocks to a form
Add new blocks to an existing form using the Tally API
Prerequisites
- A Tally account
- An API key
- An existing form
Request
To add blocks to an existing form, send a PATCH request to the /forms/:id
endpoint with the blocks you want it to contain:
This example adds two blocks to the form:
- A title block with the text “What’s your name?”
- A required text input block
As you can see, the payload contains 3 blocks, while we only wanted to add 2. That is because you always need to include all blocks when updating a form.
Response
The API will respond with a 200 status code and with some form meta data:
Your form should now contain the updated blocks.