Create a section definition (tenant:forge:write and maintainer, or tenant:forge:admin)
POST /api/forge/v1/projects/{key}/section-defs
Module: Forge · operationId: createForgeSectionDef · Tag: Configuration · Auth: access token (Authorization: Bearer <accessToken>)
Requires tenant:forge:admin, or tenant:forge:write and project role maintainer or admin. Writes forge.config.updated.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
key |
path | string | yes | Project key (e.g. APP) |
Request body
application/json (required)
key(string): Create: section key; fixed afterwardskind(string): markdown (default) or checklist (one ofmarkdown,checklist)label(string): Display label (max length 80)placement(string): tab (default) or aside (one oftab,aside)typeKeys(array of string): Item type keys; empty = every typeversion(integer): PATCH: the version the change is based on
Example:
{
"key": "testplan",
"kind": "checklist",
"label": "Testplan",
"placement": "aside",
"typeKeys": [
"story",
"fehler"
]
}
Responses
- 201 Created (
application/json) - 400 Error (
application/json) - 403 Error (
application/json) - 404 Error (
application/json) - 409 Error (
application/json)
Fields of the 201 answer:
id(string (uuid), required): Section definition idkey(string, required): Section key; never changeskind(string, required): markdown or checklist (one ofmarkdown,checklist)label(string, required): Display labelplacement(string, required): Where the portal shows it: a tab or the side column (one oftab,aside)position(integer, required): Order in the configurationtypeKeys(array of string, required): Item type keys the section applies to; empty = every typeversion(integer, required): Optimistic-locking version; send it with PATCH
Example 201 answer:
{
"id": "bd7e8f9a-0b1c-4d2e-9fd0-7b8c9d0e1f03",
"key": "acceptance",
"kind": "checklist",
"label": "Akzeptanzkriterien",
"placement": "tab",
"position": 2,
"typeKeys": [],
"version": 1
}
Example request
curl -X POST 'https://api.mbcom.cloud/api/forge/v1/projects/string/section-defs' \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
--data '{"key":"testplan","kind":"checklist","label":"Testplan","placement":"aside","typeKeys":["story","fehler"]}'