## Change or archive an application form (hr:recruiting:manage)

`PUT /api/hr/v1/recruiting/form-templates/{id}`

Module: HR · operationId: `updateApplicationForm` · Tag: Recruiting · Auth: access token (`Authorization: Bearer <accessToken>`)

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes |  |

### Request body

`application/json` (required)

- `name` (string, required): Name of the form (max length 200)
- `archived` (boolean): Archived: no longer offered for new data, kept for existing data
- `createdAt` (string (date-time), read-only): When the application form was created
- `description` (string): Description of the form (max length 2000)
- `fields` (array of ApplicationFormField): Questions of the form after the fixed fields
  - `key` (string, required): Lower-case letters, digits, - or _; not a core field (first_name, last_name, email, phone, cover_letter, cv, attachments)
  - `kind` (string, required): Kind of answer (one of `text`, `longtext`, `number`, `date`, `bool`, `select`, `multiselect`, `url`, `file`)
  - `label` (string, required): Question text (max length 300)
  - `help` (string): Help text shown with the question (max length 1000)
  - `options` (array of object): Choices of select and multiselect questions
    - `label` (string): Display text of the choice
    - `value` (string): Stored value of the choice
  - `required` (boolean): An answer is required
- `id` (string (uuid), read-only): Id of the application form
- `updatedAt` (string (date-time), read-only): When the application form was last changed
- `version` (integer): Version for optimistic locking: send the version you read with a change (stale: 409 version_conflict)

Example:

```json
{
  "archived": false,
  "createdAt": "2026-09-01T09:00:00Z",
  "description": "Zusatzfragen für Stellen in Technik und Service Desk",
  "fields": [
    {
      "key": "fruehester_start",
      "kind": "date",
      "label": "Ab wann können Sie bei uns starten?",
      "required": true
    },
    {
      "key": "gehaltsvorstellung",
      "kind": "number",
      "label": "Ihre Gehaltsvorstellung (brutto pro Jahr)",
      "required": false
    },
    {
      "key": "zertifizierungen",
      "kind": "multiselect",
      "label": "Welche Microsoft-Zertifizierungen haben Sie?",
      "options": [
        {
          "label": "MS-102",
          "value": "ms_102"
        },
        {
          "label": "MD-102",
          "value": "md_102"
        },
        {
          "label": "AZ-104",
          "value": "az_104"
        }
      ],
      "required": false
    }
  ],
  "id": "3e5a7c9e-1a3c-4e5a-9c7e-1a3c5e7a9c90",
  "name": "Technische Stellen",
  "updatedAt": "2026-09-15T13:20:00Z",
  "version": 2
}
```

### Responses

- **200** Saved (`application/json`)
- **400** Error (`application/json`)
- **409** Error (`application/json`)

Fields of the 200 answer:

- `name` (string, required): Name of the form (max length 200)
- `archived` (boolean): Archived: no longer offered for new data, kept for existing data
- `createdAt` (string (date-time), read-only): When the application form was created
- `description` (string): Description of the form (max length 2000)
- `fields` (array of ApplicationFormField): Questions of the form after the fixed fields
  - `key` (string, required): Lower-case letters, digits, - or _; not a core field (first_name, last_name, email, phone, cover_letter, cv, attachments)
  - `kind` (string, required): Kind of answer (one of `text`, `longtext`, `number`, `date`, `bool`, `select`, `multiselect`, `url`, `file`)
  - `label` (string, required): Question text (max length 300)
  - `help` (string): Help text shown with the question (max length 1000)
  - `options` (array of object): Choices of select and multiselect questions
    - `label` (string): Display text of the choice
    - `value` (string): Stored value of the choice
  - `required` (boolean): An answer is required
- `id` (string (uuid), read-only): Id of the application form
- `updatedAt` (string (date-time), read-only): When the application form was last changed
- `version` (integer): Version for optimistic locking: send the version you read with a change (stale: 409 version_conflict)

Example 200 answer:

```json
{
  "archived": false,
  "createdAt": "2026-09-01T09:00:00Z",
  "description": "Zusatzfragen für Stellen in Technik und Service Desk",
  "fields": [
    {
      "key": "fruehester_start",
      "kind": "date",
      "label": "Ab wann können Sie bei uns starten?",
      "required": true
    },
    {
      "key": "gehaltsvorstellung",
      "kind": "number",
      "label": "Ihre Gehaltsvorstellung (brutto pro Jahr)",
      "required": false
    },
    {
      "key": "zertifizierungen",
      "kind": "multiselect",
      "label": "Welche Microsoft-Zertifizierungen haben Sie?",
      "options": [
        {
          "label": "MS-102",
          "value": "ms_102"
        },
        {
          "label": "MD-102",
          "value": "md_102"
        },
        {
          "label": "AZ-104",
          "value": "az_104"
        }
      ],
      "required": false
    }
  ],
  "id": "3e5a7c9e-1a3c-4e5a-9c7e-1a3c5e7a9c90",
  "name": "Technische Stellen",
  "updatedAt": "2026-09-15T13:20:00Z",
  "version": 2
}
```

### Example request

```bash
curl -X PUT 'https://api.mbcom.cloud/api/hr/v1/recruiting/form-templates/3f2b8c1e-7d4a-4e9b-9c2a-5b1d6e8f0a12' \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"archived":false,"createdAt":"2026-09-01T09:00:00Z","description":"Zusatzfragen für Stellen in Technik und Service Desk","fields":[{"key":"fruehester_start","kind":"date","label":"Ab wann können Sie bei uns starten?","required":true},{"key":"gehaltsvorstellung","kind":"number","label":"Ihre Gehaltsvorstellung (brutto pro Jahr)","required":false},{"key":"zertifizierungen","kind":"multiselect","label":"Welche Microsoft-Zertifizierungen haben Sie?","options":[{"label":"MS-102","value":"ms_102"},{"label":"MD-102","value":"md_102"},{"label":"AZ-104","value":"az_104"}],"required":false}],"id":"3e5a7c9e-1a3c-4e5a-9c7e-1a3c5e7a9c90","name":"Technische Stellen","updatedAt":"2026-09-15T13:20:00Z","version":2}'
```
