InformdAPIForms
Create a form
Creates a draft form owned by the authenticated actor. New forms are standalone (no namespace) until moved into one.
POST
/formsCreates a draft form owned by the authenticated actor. New forms are standalone (no namespace) until moved into one.
Authorization
bearerAuth AuthorizationBearer <token>
JWT issued by IdentityX, signed with Ed25519
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request body for form creation. Mirrors models.CreateFormRequest.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/forms" \ -H "Content-Type: application/json" \ -d '{ "title": "Registration Form" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"namespace_id": "be493771-41ca-4fe5-8001-a41a148c3359",
"owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
"created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
"title": "string",
"status": "draft",
"opened_at": "2019-08-24T14:15:22Z",
"closed_at": "2019-08-24T14:15:22Z",
"archived_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}{
"detail": "string",
"instance": "../dictionary",
"errors": [
{
"field": "string",
"message": "string"
}
],
"type": "http://example.com",
"status": 400,
"title": "Validation Failed"
}{
"detail": "string",
"instance": "../dictionary",
"errors": [
{
"field": "string",
"message": "string"
}
],
"type": "http://example.com",
"status": 401,
"title": "Unauthenticated"
}{
"detail": "string",
"instance": "../dictionary",
"errors": [
{
"field": "string",
"message": "string"
}
],
"type": "http://example.com",
"status": 500,
"title": "Internal Server Error"
}