Validations

Validate JSON rows

Validate a JSON array of records with template column keys and values. Errors and corresponding OneSchema error codes are returned in the response as JSON.

post/v1/validate-json-rows

Request

  • Base URL
    https://api.oneschema.co
  • URL
    https://api.oneschema.co/v1/validate-json-rows
  • Auth
    API key in header X-API-KEY

Request body

template_keystring required

Response

200

Example response

{
  "error_rows": [
    {
      "index": 1,
      "errors": {
        "<template_column_key_with_error>": {
          "code": 3,
          "message": "<error_message>"
        }
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.