InformdAPINamespaces
Create a form in a namespace
Creates a draft form inside the namespace. The actor must be an admin or owner of the namespace.
POST
/namespaces/{namespace_id}/formsCreates a draft form inside the namespace. The actor must be an admin or owner of the namespace.
Authorization
bearerAuth AuthorizationBearer <token>
JWT issued by IdentityX, signed with Ed25519
In: header
Path Parameters
namespace_id*string
Namespace ID.
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
application/problem+json
application/problem+json
curl -X POST "https://example.com/namespaces/497f6eca-6276-4993-bfeb-53cbbbba6f08/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": 403,
"title": "Insufficient Role"
}{
"detail": "string",
"instance": "../dictionary",
"errors": [
{
"field": "string",
"message": "string"
}
],
"type": "http://example.com",
"status": 404,
"title": "Not Found"
}{
"detail": "string",
"instance": "../dictionary",
"errors": [
{
"field": "string",
"message": "string"
}
],
"type": "http://example.com",
"status": 500,
"title": "Internal Server Error"
}