Validate restriction branches
Validates restriction branches without saving. Returns validation errors if any.
AuthorizationBearer <token>
In: header
Path Parameters
typeId*string
Query Parameters
restrictionTreeId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/types/restriction/string/validate-branches?restrictionTreeId=string" \ -H "Content-Type: application/json" \ -d '[ { "choices": [ { "code": "string", "option": "string" } ], "restriction": { "id": "string", "options": [ { "allowedCodes": [ "string" ], "optionName": "string" } ] } } ]'{
"errors": [
{
"branchIndex": 0,
"field": "string",
"message": "string"
}
],
"valid": true
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}