POST /api/admin/permissions/validate

As of Versionproduct version 1.0 | component version 1.0
Request MethodPOST
Response FormatJSON
Required Permission

available if listed in authorization.accesses in authentication-prod.yml and the specified access condition is matched.

>> AUTHENTICATION Service
Description

To validate the role set of the tenant, there are two possibilities to send the new role set: as binary in the request body or as multipart request with part name file. The tenant for which the role set will be updated belongs to the user calling this endpoint.

If the validation process fails, the response contains at least one error message. If the new role set is valid, the response contains an empty list validationErrors.

Request HeaderContent-Type: application/xml
Response Example

The result is a JSON structure containing a validationErrors list, which could be an empty list.

200 - the role set is valid, no validation errors
{
    "validationErrors": []
}
422 - there were validation errors
{
    "validationErrors": [
        {
            "message": "Unable to unmarshal schema. [line: 14][column: 13] cvc-complex-type.2.4.a: Ungültiger Content wurde beginnend mit Element 
			'condition' gefunden. '{\"http://optimal-systems.org/ns/dmscloud/roleset/\":action}' wird erwartet."
        }
    ]
}