{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deepcure/json-schema/deepcure-post-positions-request-schema.json",
  "title": "PostPositionsRequest",
  "x-generated": "2026-11-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/deepcure-openapi-generated.yml#/components/schemas/PostPositionsRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "description": "One of the following: `open`, `on hold`, `closed`"
    },
    "is_discreet": {
      "type": "boolean",
      "description": "`true` means that the position is only visible to teammates on the position's hiring team."
    },
    "department": {
      "type": "string",
      "description": "If the provided value doesn't exist it will be added as a new option"
    },
    "experience_level": {
      "type": "string",
      "description": "If the provided value doesn't exist it will be added as a new option"
    },
    "employment_type": {
      "type": "string",
      "description": "If the provided value doesn't exist it will be added as a new option"
    },
    "is_talent_pool": {
      "type": "boolean",
      "description": "`true` means that this position is a talent pool"
    },
    "location": {
      "type": "object"
    },
    "location.uid": {
      "type": "string",
      "description": "Location UID"
    },
    "salary_range": {
      "type": "object",
      "description": "Position salary range. Permission to write positions salary range is required."
    },
    "salary_range.min": {
      "type": "integer"
    },
    "salary_range.max": {
      "type": "integer"
    },
    "salary_range.currency_code": {
      "type": "string",
      "description": "Currency using 3 letters code (ISO 4217)"
    },
    "salary_range.period": {
      "type": "string",
      "description": "One of the following: `hourly`, `weekly`, `monhtly`, `annually`"
    },
    "categories": {
      "type": "array",
      "description": "Custom categories"
    },
    "categories[].name": {
      "type": "string",
      "description": "Must match an existing field's name"
    },
    "categories[].value": {
      "type": "string",
      "description": "For dropdown fields - a value that doesn't already exist will be added as a dropdown option"
    },
    "details": {
      "type": "array",
      "description": "Free-form text details."
    },
    "details[].name": {
      "type": "string",
      "description": "Must match an existing field's name"
    },
    "details[].value": {
      "type": "string",
      "description": "HTML"
    },
    "allow_fallback": {
      "type": "boolean",
      "description": "Applies when the `email` provided for users doesn't match an existing user in Recruit: When `true` - the earliest Owner of the account is assigned for the role instead of the specified user. When `false`(default) - the request will fail"
    },
    "users": {
      "type": "object"
    },
    "users.lead_recruiter": {
      "type": "object"
    },
    "users.lead_recruiter.email": {
      "type": "string",
      "description": "Email address of an existing user. Must have a company recruiter role."
    },
    "users.hiring_manager": {
      "type": "object"
    },
    "users.hiring_manager.email": {
      "type": "string",
      "description": "Email address of an existing user"
    },
    "users.lead_recruiting_coordinator": {
      "type": "object"
    },
    "users.lead_recruiting_coordinator.email": {
      "type": "string",
      "description": "Email address of an existing user"
    },
    "openings[]": {
      "type": "array"
    },
    "openings[].name": {
      "type": "string",
      "description": "Opening name"
    },
    "openings[].approval_status": {
      "type": "string",
      "description": "One of the following: `APPROVED`"
    },
    "openings[].time_expected_hire": {
      "type": "string"
    },
    "openings[].reason": {
      "type": "string",
      "description": "One of the following: `New`, `Replacement hire`, `Temporary replacement`"
    },
    "openings[].status": {
      "type": "string",
      "description": "Must be `OPEN`"
    },
    "openings[].time_approved": {
      "type": "string",
      "description": "Required if the approval status is set to `APPROVED`"
    },
    "openings[].time_opened": {
      "type": "string",
      "description": "If empty, the default value is the time of the creation of the opening."
    },
    "openings[].custom_fields": {
      "type": "object",
      "description": "Key-value pairs of custom opening fields. Keys must match a name of an existing custom field. For dropdown fields - a value that doesn't already exist will be added as a dropdown option."
    },
    "questionnaire_uids": {
      "type": "array",
      "description": "questionnaires UIDs"
    }
  },
  "required": [
    "name",
    "status",
    "is_discreet",
    "categories[].name",
    "categories[].value",
    "details[].name",
    "details[].value",
    "users",
    "users.lead_recruiter",
    "users.lead_recruiter.email",
    "users.hiring_manager",
    "users.hiring_manager.email",
    "openings[].name",
    "openings[].time_expected_hire",
    "openings[].reason",
    "openings[].status"
  ]
}