Skip to main content
Validate form data
curl --request POST \
  --url https://{tenantId}.api.nestmed.com/api/v1/forms/{formId}/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {}
}'
{
  "valid": true,
  "errors": [
    {
      "field": "<string>",
      "value": "<unknown>",
      "message": "<string>",
      "type": "<string>"
    }
  ],
  "warnings": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

formId
string
required

Body

application/json
data
object

Response

200 - application/json

Validation result.

valid
boolean
errors
object[]
warnings
object[]