ConnectCloud Developers

Change an item type (tenant:forge:write and maintainer, or tenant:forge:admin)

PATCH /api/forge/v1/projects/{key}/item-types/{id}

Module: Forge · operationId: patchForgeItemType · Tag: Configuration · Auth: access token (Authorization: Bearer <accessToken>)

Same permission as creating. version is required (409 version_conflict); keys never change. Moving to a workflow that lacks a status the type's items sit on is 409 in_use with details.counts.

Parameters

Name In Type Required Description
key path string yes Project key (e.g. APP)
id path string (uuid) yes

Request body

application/json (required)

  • archived (boolean): Archive or restore the type
  • icon (string): Icon name (at most 60 characters)
  • key (string): Create: type key; fixed afterwards
  • level (integer): 0 = leaf; a parent type has a higher level (max 5)
  • name (string): Display name (max length 60)
  • version (integer): PATCH: the version the change is based on
  • workflowId (string (uuid)): Workflow of the type

Example:

{
  "icon": "i-lucide-bug-play",
  "name": "Fehlerbericht",
  "version": 1
}

Responses

  • 200 Changed (application/json)
  • 400 Error (application/json)
  • 403 Error (application/json)
  • 404 Error (application/json)
  • 409 Error (application/json)

Fields of the 200 answer:

  • archived (boolean, required): Archived: no new items of the type
  • icon (string, required): Icon name shown in the portal
  • id (string (uuid), required): Item type id
  • key (string, required): Type key; never changes
  • level (integer, required): 0 = leaf; a parent type has a higher level (max 5)
  • name (string, required): Display name
  • position (integer, required): Order in the configuration
  • version (integer, required): Optimistic-locking version; send it with PATCH
  • workflowId (string (uuid), required): Workflow the items of the type follow

Example 200 answer:

{
  "archived": false,
  "icon": "i-lucide-bug",
  "id": "7f3a4b5c-6d7e-4f8a-9b9c-3d4e5f6a7b04",
  "key": "fehler",
  "level": 1,
  "name": "Fehler",
  "position": 3,
  "version": 1,
  "workflowId": "6e2f3a4b-5c6d-4e7f-9a8b-2c3d4e5f6a01"
}

Example request

curl -X PATCH 'https://api.mbcom.cloud/api/forge/v1/projects/string/item-types/3f2b8c1e-7d4a-4e9b-9c2a-5b1d6e8f0a12' \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"icon":"i-lucide-bug-play","name":"Fehlerbericht","version":1}'

View as Markdown · Interactive reference · OpenAPI