# Bewerbungsphase ändern

`PUT https://{tenant}.stamp.eu/rest/recruiting/applications/{application}/stage`

Any transition; answers the application and the
fresh stage counts of its posting

## Pfadparameter

| Name | Typ | Pflicht |
| --- | --- | --- |
| `application` | string | ja |

## Request-Body

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `stage` | `new`, `review`, `interview`, `offer`, `hired`, `rejected` | ja | Fixed pipeline of a job application (OpenSpec add-recruiting, D7). Every transition is allowed, also backwards; entering `rejected` or `hired` sets the matching timestamp, leaving it clears it. |

## Antworten

### 200: `JobApplicationStageChangeResource`

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `data` | object | ja |  |
| `data.application` | object | ja |  |
| `data.application.id` | string | ja |  |
| `data.application.job_posting_id` | string | ja |  |
| `data.application.posting` | object \| null | ja |  |
| `data.application.first_name` | string \| null | ja |  |
| `data.application.last_name` | string \| null | ja |  |
| `data.application.full_name` | string \| null | ja |  |
| `data.application.email` | string \| null | ja |  |
| `data.application.phone` | string \| null | ja |  |
| `data.application.profile_url` | string \| null | ja |  |
| `data.application.cover_letter` | string \| null | ja |  |
| `data.application.stage` | `new`, `review`, `interview`, `offer`, `hired`, `rejected` | ja | Fixed pipeline of a job application (OpenSpec add-recruiting, D7). Every transition is allowed, also backwards; entering `rejected` or `hired` sets the matching timestamp, leaving it clears it. |
| `data.application.source` | `career_page`, `widget`, `indeed`, `stepstone`, `linkedin`, `aggregator` | ja | Where an application came from (OpenSpec add-recruiting, D16, D17): the hosted career page, the job widget or one of the feed channels. The public job page passes the value of `?source=` to the submission; the feed channels append it to every posting URL (`tracking_source` in `recruiting.feeds.channels`). Unknown values count as career page. |
| `data.application.locale` | string | ja |  |
| `data.application.privacy_acknowledged_at` | string | ja |  |
| `data.application.privacy_notice_version` | integer | ja |  |
| `data.application.submitted_at` | string \| null | ja |  |
| `data.application.rejected_at` | string \| null | ja |  |
| `data.application.hired_at` | string \| null | ja |  |
| `data.application.employee_id` | string \| null | ja |  |
| `data.application.is_purged` | boolean | ja |  |
| `data.application.purged_at` | string \| null | ja |  |
| `data.application.possible_duplicate` | boolean | ja |  |
| `data.application.duplicate_count` | integer | ja |  |
| `data.application.duplicate_on_posting_count` | integer | ja |  |
| `data.application.retention_due_at` | string \| null | ja |  |
| `data.application.retention_hint` | boolean | ja |  |
| `data.application.mail_templates` | `rejection`, `invitation`[] | ja |  |
| `data.application.can_convert` | boolean | ja |  |
| `data.application.can_create_questionnaire` | boolean | ja |  |
| `data.application.documents` | object[] | ja |  |
| `data.application.events` | object[] | ja |  |
| `data.stage_counts` | object | ja |  |
| `data.stage_counts.new` | integer | ja |  |
| `data.stage_counts.review` | integer | ja |  |
| `data.stage_counts.interview` | integer | ja |  |
| `data.stage_counts.offer` | integer | ja |  |
| `data.stage_counts.hired` | integer | ja |  |
| `data.stage_counts.rejected` | integer | ja |  |

### 401: Unauthenticated

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Error overview. |

### 422: Validation error

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Errors overview. |
| `errors` | object | ja | A detailed description of each field that failed validation. |
