TrieOH
InformdAPIFields

Create a field (namespaced)

Namespaced duplicate of `POST /forms/{form_id}/steps/{step_id}/fields`. Scheduled for removal.

POST/namespaces/{namespace_id}/forms/{form_id}/steps/{step_id}/fields

Namespaced duplicate of POST /forms/{form_id}/steps/{step_id}/fields. Scheduled for removal.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT issued by IdentityX, signed with Ed25519

In: header

Path Parameters

namespace_id*string

Namespace ID.

form_id*string

Form ID.

step_id*string

Step ID.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request body for field creation. Mirrors models.CreateFieldRequest.

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/497f6eca-6276-4993-bfeb-53cbbbba6f08/steps/497f6eca-6276-4993-bfeb-53cbbbba6f08/fields" \  -H "Content-Type: application/json" \  -d '{    "key": "string",    "title": "string",    "position_hint": 1,    "required": true,    "type": "string"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "step_id": "5cb19d54-1551-4ee7-a292-ee3ee4dcef77",
  "key": "string",
  "title": "string",
  "description": "string",
  "position_hint": 1,
  "required": true,
  "type": "string",
  "placeholder": {},
  "default_value": {},
  "config": {},
  "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"
}