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.

Update a vacancy

Deprecated

PUT
/api/public/v2/recruitment/vacancies/{id}

Path Parameters

id*integer
Formatint64

Request Body

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

Response Body

The updated vacancy.

application/json
  1. response
data*
Example Request
curl -X PUT 'https://app.peopleforce.io/api/public/v2/recruitment/vacancies/0' \  -H 'Content-Type: application/json' \  -d '{}'
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  }}