Skip to main content
POST
/
forms
/
import-csv
Create forms from CSV
curl --request POST \
  --url https://app.azalt.co/api/v1/forms/import-csv \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "forms": [
    {
      "name": "<string>",
      "siteIds": [
        "<string>"
      ],
      "years": [
        123
      ],
      "elements": [
        {
          "key": "<string>",
          "label": "<string>",
          "type": "NUMBER",
          "optionValues": [
            "<string>"
          ],
          "optionLabels": [
            "<string>"
          ],
          "datasetItems": [
            "<string>"
          ],
          "description": "<string>",
          "placeholder": "<string>",
          "unit": "<string>",
          "unitId": "<string>",
          "required": true,
          "period": "YEARLY",
          "metadata": {}
        }
      ],
      "tags": [
        "<string>"
      ]
    }
  ]
}
'
[
  {
    "id": "<string>",
    "name": "<string>"
  }
]

Authorizations

Authorization
string
header
required

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

Body

application/json
forms
object[]
required

Response

Successful response

id
string
required
name
string
required