# Stellenanzeige anlegen

`POST https://{tenant}.stamp.eu/rest/recruiting/postings`

Creates a draft with a slug derived from the title

## Request-Body

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `title` | string | ja |  |
| `description_md` | string | ja |  |
| `employment_type` | `full_time`, `part_time`, `mini_job`, `working_student`, `internship`, `apprenticeship`, `temporary`, `freelance` | ja | Kind of employment offered by a job posting (OpenSpec add-recruiting, D3). Deliberately separate from {@see EmploymentType}, which describes the contract of an existing employee. |
| `workplace_type` | `onsite`, `hybrid`, `remote` | ja | Where the work of a job posting takes place (OpenSpec add-recruiting, D3, D10). |
| `location_id` | string \| null | nein |  |
| `salary_min_cents` | integer \| null | nein |  |
| `salary_max_cents` | integer \| null | nein |  |
| `salary_period` | `hour`, `month`, `year` \| null | nein |  |
| `valid_through` | string \| null | nein |  |

## Antworten

### 201: `JobPostingResource`

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `data` | object | ja |  |
| `data.id` | string | ja |  |
| `data.title` | string | ja |  |
| `data.slug` | string | ja |  |
| `data.public_path` | string | ja |  |
| `data.description_md` | string | ja |  |
| `data.description_html` | string | ja |  |
| `data.employment_type` | `full_time`, `part_time`, `mini_job`, `working_student`, `internship`, `apprenticeship`, `temporary`, `freelance` | ja | Kind of employment offered by a job posting (OpenSpec add-recruiting, D3). Deliberately separate from {@see EmploymentType}, which describes the contract of an existing employee. |
| `data.workplace_type` | `onsite`, `hybrid`, `remote` | ja | Where the work of a job posting takes place (OpenSpec add-recruiting, D3, D10). |
| `data.location_id` | string \| null | ja |  |
| `data.location` | object \| null | ja |  |
| `data.location.id` | string | ja |  |
| `data.location.name` | string | ja |  |
| `data.location.city` | string \| null | ja |  |
| `data.location.postal_code` | string \| null | ja |  |
| `data.salary_min_cents` | integer \| null | ja |  |
| `data.salary_max_cents` | integer \| null | ja |  |
| `data.salary_period` | `hour`, `month`, `year` \| null | ja |  |
| `data.status` | `draft`, `published`, `closed` | ja | Lifecycle of a job posting (OpenSpec add-recruiting, D3): draft → published ⇄ closed. A published posting is public only while `valid_through` has not passed ({@see \App\Models\JobPosting::scopePubliclyVisible()}); expiry is derived, not a status. |
| `data.is_expired` | boolean | ja |  |
| `data.accepts_applications` | boolean | ja |  |
| `data.published_at` | string \| null | ja |  |
| `data.first_published_at` | string \| null | ja |  |
| `data.closed_at` | string \| null | ja |  |
| `data.valid_through` | string \| null | ja |  |
| `data.hints` | string[] | 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 |  |
| `data.applications_count` | integer | ja |  |
| `data.source_counts` | object | ja |  |
| `data.source_counts.career_page` | integer | ja |  |
| `data.source_counts.widget` | integer | ja |  |
| `data.source_counts.indeed` | integer | ja |  |
| `data.source_counts.stepstone` | integer | ja |  |
| `data.source_counts.linkedin` | integer | ja |  |
| `data.source_counts.aggregator` | integer | ja |  |
| `data.created_by` | string \| null | ja |  |
| `data.created_at` | string \| null | ja |  |
| `data.updated_at` | string \| null | 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. |
