AlphaAlpha Docs
API ReferenceTypes -restriction

Create multiple restriction branches

Create multiple restriction branches at once (bulk create)

POST
/types/restriction/{typeId}/branches
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

curl -X POST "http://localhost:18080/api/v1/types/restriction/string/branches?restrictionTreeId=string" \  -H "Content-Type: application/json" \  -d '[    {      "choices": [        {          "code": "string",          "option": "string"        }      ],      "restriction": {        "id": "string",        "options": [          {            "allowedCodes": [              "string"            ],            "optionName": "string"          }        ]      }    }  ]'
Empty
{
  "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"
}