Create a form
Body·
application/json
- Type: stringtitlemin length:1max length:200required
- Type: stringdescriptionmax length:2000
- Type: array · …100fields
- Type: stringslugmin length:2max length:64
Pattern: ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$ - Type: string enumstatusvalues
- draft
- published
- closed
Responses
- application/json
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
Request Example for post/v1/forms
curl https://ffforms.com/v1/forms \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"title": "",
"description": "",
"slug": "",
"status": "draft",
"fields": []
}'
{
"id": "string",
"slug": null,
"title": "string",
"description": null,
"status": "draft",
"fields": [
{
"key": "string",
"label": "string",
"required": false,
"description": "string",
"placeholder": "string",
"type": "text",
"minLength": 0,
"maxLength": 1,
"pattern": "string"
}
],
"createdAt": "string",
"updatedAt": "string"
}