Skip to main content
POST
/
schemas
/
{schemaId}
/
validate
Validate data against a schema
curl --request POST \
  --url https://api.sftpsync.io/schemas/{schemaId}/validate \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "data": {}
}'
{
  "valid": true,
  "errors": [
    {
      "field": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

schemaId
string
required

Body

application/json
data
object
required

Response

200 - application/json

Validation result

valid
boolean
required
errors
object[]