Create form data for a single form

post

/api/REST/1.0/data/form/{id}

Creates form data for the form that matches the criteria specified by the request body. This endpoint will only create form data specified in the request body, including static values in form fields. If a form field contains a static value, the field must be included in the request body to update the static value.

Request

Supported Media Types
Path Parameters
Body ()
The request body defines the details of the form data to be created.
Root Schema : FormData
Type: object
Title: FormData
Show Source
Nested Schema : fieldValues
Type: array
A list of key/value pairs identifying the form data (field name / value)
Show Source
Nested Schema : processingStepErrors
Type: array
A list of Processing Step Errors occurred in current form submission. This is a read-only property
Show Source
Nested Schema : validationErrors
Type: array
Validation errors if any occured in form submission. This is a read-only property
Show Source
Nested Schema : FieldValue
Type: object
Title: FieldValue
Show Source
Nested Schema : ProcessingStepError
Type: object
Title: ProcessingStepError
Show Source
Nested Schema : ObjectValidationError
Type: object
Title: ObjectValidationError
Show Source
Nested Schema : ObjectKey
Type: object
Title: ObjectKey
Show Source
Nested Schema : Requirement
Type: object
Title: Requirement
Show Source
Back to Top

Response

Supported Media Types

201 Response

Success.
Body ()
Root Schema : FormData
Type: object
Title: FormData
Show Source
Nested Schema : fieldValues
Type: array
A list of key/value pairs identifying the form data (field name / value)
Show Source
Nested Schema : processingStepErrors
Type: array
A list of Processing Step Errors occurred in current form submission. This is a read-only property
Show Source
Nested Schema : validationErrors
Type: array
Validation errors if any occured in form submission. This is a read-only property
Show Source
Nested Schema : FieldValue
Type: object
Title: FieldValue
Show Source
Nested Schema : ProcessingStepError
Type: object
Title: ProcessingStepError
Show Source
Nested Schema : ObjectValidationError
Type: object
Title: ObjectValidationError
Show Source
Nested Schema : ObjectKey
Type: object
Title: ObjectKey
Show Source
Nested Schema : Requirement
Type: object
Title: Requirement
Show Source

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

Create some new form data for the form asset with ID #21:


POST /api/REST/1.0/data/form/21
Content-Type: application/json 
			

Note:

The fieldValue IDs must correspond to the "FormField" parameters contained within the parent form asset. To retrieve a list of appropriate field values, you can make a GET request to /assets/form/{id} (in this case the ID of the form is 21 and the fieldValue ID is 3).

Request body:


{
  "fieldValues": [
    {
      "type": "FieldValue",
      "id": "3",
      "value": "Aquamarine"
    }
  ]
}
			

Response:


{
  "id": "225",
  "fieldValues": [
    {
      "type": "FieldValue",
      "id": "3",
      "value": "Aquamarine"
    }
  ]
}
			
Back to Top