Stampfactory
Dokumentation
Recruiting

Bewerbende als Mitarbeitende übernehmen

Creates the employee from the application (module `employees` and `employees:manage` required, 403 `conversion_not_allowed` otherwise), sets stage `hired` and copies the released files into the personnel file shortly after. 409 `application_already_converted` or `application_purged`, 422 for a taken personnel number

POST
/recruiting/applications/{application}/convert
AuthentifizierungBearer <token>

Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).

Ort: header

Pfadparameter

application*string

Request-Body

application/json

TypeScript-Definitionen

TypeScript-Typ für request body.

Conversion of an application into an employee (OpenSpec add-recruiting, D14, task 9.2): personnel number (unique) and entry date; first and last name default to the application; send_questionnaire creates a personnel questionnaire sent to the application address when that module is active (ignored otherwise).

Response-Body

application/json

application/json

application/json

curl -X POST "https://example.com/recruiting/applications/string/convert" \  -H "Content-Type: application/json" \  -d '{    "reference_no": "string",    "employed_start": "2019-08-24"  }'
{  "data": {    "application": {      "id": "string",      "job_posting_id": "string",      "posting": {        "id": "string",        "title": "string",        "status": "draft"      },      "first_name": "string",      "last_name": "string",      "full_name": "string",      "email": "string",      "phone": "string",      "profile_url": "string",      "cover_letter": "string",      "stage": "new",      "source": "career_page",      "locale": "string",      "privacy_acknowledged_at": "string",      "privacy_notice_version": 0,      "submitted_at": "string",      "rejected_at": "string",      "hired_at": "string",      "employee_id": "string",      "is_purged": true,      "purged_at": "string",      "possible_duplicate": true,      "duplicate_count": 0,      "duplicate_on_posting_count": 0,      "retention_due_at": "string",      "retention_hint": true,      "mail_templates": [        "rejection"      ],      "can_convert": true,      "can_create_questionnaire": true,      "documents": [        {          "id": "string",          "kind": "cv",          "original_filename": "string",          "mime_type": "string",          "size_bytes": 0,          "quarantined": true,          "check_result": "string",          "check_state": "pending",          "checked_at": "string",          "downloadable": true,          "created_at": "string"        }      ],      "events": [        {          "id": "string",          "type": "stage_changed",          "from_stage": "new",          "to_stage": "new",          "body": "string",          "mail_template": "rejection",          "mail_subject": "string",          "user_id": "string",          "user_name": "string",          "created_at": "string"        }      ]    },    "employee_id": "string",    "personnel_questionnaire_id": "string"  }}