Create an option list
Body parameters
| Parameter | Type | Description |
|---|---|---|
name | String | Can only contain letters, numbers, dots or underscores. Because it is used as an identifier, this also needs to be unique. |
labels | Labels | The translation(s) of the canonical name. |
type | String | Flat disables nesting of option list items, Hierarchical enables nesting option list items. If it set to Flat and the values array contains nested items, it will throw an error. |
values | ArrayDatasourceValue | The Option list items that belong to the option list. |
is_system_owned | Boolean | false allows the option list to be editable, true locks the option list preventing any further modifications. When creating an option list using the API, you should always use false, which is the default value. |
Body examples
To obtain a result that looks like this:

Send the following body:
Response
| Response | Body |
|---|---|
201 Created | Returns an empty body when everything was processed without errors. |
400 Bad Request | Will return an error message in the body accessible using the otherkey |
Response examples
If you have suggestions for improving this article, let us know!