POST /api/system/tenants/{tenant}/schema/validate
As of Version | product version 2021 Autumn | component version 2021 Autumn |
---|---|
Request Method | POST |
Response Format | JSON |
Required Permission | available if listed in |
Description | Validates an XML schema file to be used as tenant schema for the tenant specified by the The validation response is returned in JSON format. |
Request Headers | Content-Type: application/xml |
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": "Ambiguous IDs. There are 2 property type definitions with the ID 'tenTenant1:from'.", "serviceErrorCode": 2110 }, { "message": "Wrong base ID. The base ID of the system:document type definition 'tenTenant1:email' must be 'system:document', but it is 'system:folder'.", "serviceErrorCode": 2131 }, { "message": "Invalid property reference 'fromm' in type definition 'tenTenant1:email'.", "serviceErrorCode": 2132 }, { "message": "Invalid secondary object type reference 'appAcl:aclowner' in type definition 'tenTenant1:email'.", "serviceErrorCode": 2135 } ] } |