Skip to main content
PUT
/
forms
/
form
/
{form_id}
/
insert-block
Insert Block
curl --request PUT \
  --url https://api.decodahealth.com/forms/form/{form_id}/insert-block \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "id": "<string>",
  "formId": "<string>",
  "position": 123,
  "blockType": "DYNAMIC",
  "name": "<string>",
  "description": "<string>",
  "questions": [],
  "isArchived": false
}
'
{
  "id": "<string>",
  "name": "<string>",
  "pathName": "<string>",
  "description": "<string>",
  "blocks": []
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Path Parameters

form_id
string
required

Body

application/json
id
string
required
formId
string
required
position
integer
required
blockType
enum<string>
required
Available options:
DYNAMIC,
DEMOGRAPHICS,
INSURANCE,
PAYMENT_METHODS,
MEDICAL_HISTORY
name
string
required
description
string | null
questions
QuestionDetail[Union[Address, Date, Text, SingleSelect, MultiSelect, Toggle, Signature, FileUpload, PaymentMethod, Tag, Disclaimer, Statement, Document, Number, CalculatedScore]] · object[]
isArchived
boolean
default:false

Response

Successful Response

id
string
required
name
string
required
pathName
string
required
description
string | null
blocks
BlockDetail · object[]