Create a form
POST/forms
This endpoint can create a form
Request
- application/json
Body
required
form object
uid string
The uid of the form
description text
The description of the form
name string
The name of the form
archived boolean
Determines whether the form is archived
Responses
- 200
- 400
- 500
Expected response to a valid request
- application/json
- Schema
- Example (from schema)
Schema
form object
uid string
The uid of the form
description text
The description of the form
name string
The name of the form
archived boolean
Determines whether the form is archived
id uuid
The id of the form
{
"form": {
"uid": "form_uid",
"description": "Form for creating new profile",
"name": "My Form Name",
"archived": false,
"id": "2e06b876-f456-473d-bd65-b6435e0b6b2d"
}
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (from schema)
Schema
- InvalidJson
- ValidationErrors
oneOf
error
error
errors
{}
Internal Server Error - returned on unhandled exceptions.
- application/json
- Schema
- Example (from schema)
Schema
error
A message describing the error
{
"error": "Sorry something went wrong"
}
Loading...