POST api/system/apps/{app}/schema/validate
As of Version | product version 2019 Winter | component version 2019 Winter |
---|---|
Request Method | POST |
Response Format | JSON |
Required Permission | available if listed in |
Description | This endpoint is used to validate a schema file to be used for the application matching with the {app} path parameter. The result is returned to the user. |
Request Headers | Content-Type: application/xml |
Request Example | |
Response Example | The result is a JSON structure containing a 200 - no validation errors, the schema has been updated { "validationErrors": [] } 422 - there were validation errors, the schema was not updated { "validationErrors": [ { "message": "Wrong base id. The base id of the system:document type definition 'appEmail:email' must be 'system:document', but it is 'system:folder'.", "serviceErrorCode": 2131 }, { "message": "Invalid property reference 'fromm' in type definition 'appEmail:email'.", "serviceErrorCode": 2132 }, { "message": "Invalid property reference 'ccd' in type definition 'appEmail:email'.", "serviceErrorCode": 2132 } ] } |