POST /api/system/tenants/{tenant}/schema
As of Version | product version 2021 Autumn | component version 2021 Autumn |
---|---|
Request Method | POST |
Response Format | JSON |
Required Permission | available if listed in |
Description | Updates the tenant schema stored for the tenant specified by the Similar to other schema update endpoints in yuuvis® Momentum, this infers a schema validation and returns its result to the user, performing the schema update only after successful validation. |
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": "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 property reference 'ccd' in type definition 'tenTenant1:email'.", "serviceErrorCode": 2132 } ] } |