Skip to Content
PeopleForce
Vacancies

Deprecated

Company API v2 is deprecated. It no longer receives changes and will stop being supported, so move integrations to Company API v3, which serves every v2 path under /api/public/v3.

Create a vacancy

Deprecated

POST
/api/public/v2/recruitment/vacancies

Request Body

application/json
  1. body
title*string
description*string
positions*integer
Formatint32
recruitment_pipeline_id*integer
Formatint64
hiring_lead_user_id*integer
Formatint64
employment_type_id*integer
Formatint64
department_id*integer
Formatint64
location_id*integer
Formatint64
aasm_state?string
Value in"creating""drafting""opened""closed""held""cancelled""archived""reviewing"
starts_on?string
Formatdate
ends_on?string
Formatdate
seniority_id?integer
Formatint64
position_id?integer
Formatint64
division_id?integer
Formatint64
tag_ids?array<>
collaborator_ids?array<>
skills?array<string>
skill_ids?array<>
hiring_budget?string
priority?string
Value in"low""normal""high""urgent"
currency_code?string
min_salary?integer
Formatint32
max_salary?integer
Formatint32
post_on_careers?boolean
legal_entity_id?integer
Formatint64

Response Body

The created vacancy.

application/json
  1. response
data*
Example Request
curl -X POST 'https://app.peopleforce.io/api/public/v2/recruitment/vacancies' \  -H 'Content-Type: application/json' \  -d '{  "title": "string",  "description": "string",  "positions": 0,  "recruitment_pipeline_id": 0,  "hiring_lead_user_id": 0,  "employment_type_id": 0,  "department_id": 0,  "location_id": 0}'
Example Response
{  "data": {    "id": 0,    "title": "string",    "description": "string",    "state": "creating",    "priority": "low",    "starts_on": "2019-08-24",    "ends_on": "2019-08-24",    "positions": 0,    "currency_code": "string",    "post_on_careers": true,    "applications_count": 0,    "job_level": {      "id": 0,      "name": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "employment_type": {      "id": 0,      "name": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "position": {      "id": 0,      "name": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "division": {      "id": 0,      "name": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "department": {      "id": 0,      "name": "string",      "parent_id": 0,      "manager_id": 0,      "department_level": {        "id": 0,        "name": "string",        "hex_color": "string"      },      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "fields": {        "property1": {          "name": "string",          "value": "string"        },        "property2": {          "name": "string",          "value": "string"        }      }    },    "location": {      "id": 0,      "name": "string",      "address": "string",      "time_zone": "string",      "holiday_policy_id": 0,      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "legal_entity": {      "id": 0,      "name": "string"    },    "recruitment_pipeline": {      "id": 0,      "name": "string",      "stages": [        {          "id": 0,          "name": "string",          "position": 0,          "created_at": "2019-08-24T14:15:22Z",          "updated_at": "2019-08-24T14:15:22Z"        }      ],      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "hiring_lead": {      "id": 0,      "first_name": "string",      "last_name": "string",      "email": "string"    },    "collaborators": [      {        "id": 0,        "first_name": "string",        "last_name": "string",        "email": "string"      }    ],    "tags": [      {        "id": 0,        "name": "string"      }    ],    "skills": [      "string"    ],    "opened_at": "2019-08-24T14:15:22Z",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z",    "custom_fields": [      {        "vacancy_field_id": 0,        "name": "string",        "internal_name": "string",        "value": "string"      }    ],    "minimum_salary": 0,    "maximum_salary": 0  }}