---
updatedAt: 2026-06-01T12:15:48.000Z
agentTools:
  projectIndex: https://developers.smartrecruiters.com/llms.txt
---

# Update a job

Update a job per [JSON Merge Patch specification (RFC 6902)](https://datatracker.ietf.org/doc/html/rfc6902). The endpoint ignores all absent job properties.

- updating of a field might trigger job approval
- modification date is changed
- all validations rules are applied for required fields and dependencies

## Usage Examples

### Upsert Free Text Property
```json
[
  {
    "op":"add",
    "path":"/properties/-",
    "value":{
      "id":"5ec29396d4a5de40e44b1f5a",
      "value":{
        "label":"Some text"
      }
    }
  }
]
```
### Upsert Drop-down Property

```json
[
  {
    "op":"add",
    "path":"/properties/-",
    "value":{
      "id":"5ec29396d4a5de40e44b1f5a",
      "value":{
        "id":"XXX"
      }
    }
  }
]
```

### Upsert Drop-down Property via externalCode

```json
[
  {
    "op":"add",
    "path":"/properties/-",
    "value":{
      "id":"5ec29396d4a5de40e44b1f5a",
      "value":{
        "externalCode":"FULL_TIME"
      }
    }
  }
]
```

### Remove a Property

```json
[
  {
    "op":"add",
    "path":"/properties/-",
    "value":{
      "id":"5ec29396d4a5de40e44b1f5a",
      "value":{}
    }
  }
]
```

### Upsert Compensation
Create/update job `compensation` field. Sets `min`, `currency` and `period` values but leaves `max` null.
```json
[
  {
    "op":"add",
    "path":"/compensation",
    "value":{
      "min":25,
      "max":null,
      "currency":"PLN",
      "period":"HOURLY"
    }
  }
]
```

### Upsert Compensation Properties
Update job `compensation.min` and `compensation.currency` fields but leave current `compensation.max` and `compensation.period` intact.

*Note: The compensation field must not be null. Use the previous approach if that's the case*

```json
[
  {
    "op": "add",
    "path": "/compensation/min",
    "value": 425
  },
  {
    "op": "add",
    "path": "/compensation/currency",
    "value": "USD"
  }
]
```
### Delete Compensation Properties
Delete the `currency.min` field but leave `compensation.max`, `compensation.currency` and `compensation.period` intact.
```json
[
  {
    "op": "remove",
    "path": "/compensation/min"
  }
]
```


# OpenAPI definition

````json
{
  "openapi": "3.0.2",
  "info": {
    "version": "1.1.0",
    "title": "Jobs API",
    "contact": {
      "name": "SmartRecruiters",
      "url": "https://developers.smartrecruiters.com"
    }
  },
  "tags": [
    {
      "name": "jobs"
    }
  ],
  "paths": {
    "/jobs/{jobId}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/jobId"
        }
      ],
      "patch": {
        "responses": {
          "200": {
            "description": "Updated job",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDetails"
                }
              }
            }
          },
          "400": {
            "description": "with codes\n* **DEPARTMENT_NOT_FOUND** when provided department does not exist,\n* **INDUSTRY_NOT_FOUND** when provided industry does not exist,\n* **FUNCTION_NOT_FOUND** when provided function does not exist,\n* **TYPE_OF_EMPLOYMENT_NOT_FOUND** when provided type of employment does not exist,\n* **JOB_AD_LANGUAGE_NOT_FOUND** when provided job ad language does not exist,\n* **EEO_CATEGORY_NOT_FOUND** when provided eeo category does not exist,\n* **LOCATION_IDENTIFIER_NOT_FOUND** when provided location `identifier` does not match any predefined location for this company\n* **JOB_PROPERTY_REQUIRED** when some job property is required,\n* **INVALID_JOB_PROPERTY_VALUE_ID** when provided job property value id does not exist for required property,\n* **INVALID_JOB_PROPERTY_VALUE_TYPE** when invalid value type is used for job property,\n* **VALUE_INACTIVE** when job property's value is not active and cannot be set.\n* **INVALID_TEXT_FORMAT** when job property's value contains invalid text\n* **INVALID_BRAND_VALUE** when provided brand value is invalid\n* **TYPE_OF_EMPLOYMENT_NOT_ALLOWED** when provided type of employment is not allowed in country\n* **PROPERTY_INVALID** when one of provided properties contains invalid characters\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Job access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "with code\n* **JOB_TEMPLATES_MANAGEMENT_FORBIDDEN** when not allowed to change job to a job template.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Input validation fails with codes\n\n* **COMPENSATION_INVALID_CURRENCY** – the currency code provided is invalid or not supported.\n* **TAGLINES_EXCEEDS_SECTION_SIZE** – Combined Additional Information and Job Ad Footers exceed the maximum allowed length.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "description": "Update a job per [JSON Merge Patch specification (RFC 6902)](https://datatracker.ietf.org/doc/html/rfc6902). The endpoint ignores all absent job properties.\n\n- updating of a field might trigger job approval\n- modification date is changed\n- all validations rules are applied for required fields and dependencies\n\n## Usage Examples\n\n### Upsert Free Text Property\n```json\n[\n  {\n    \"op\":\"add\",\n    \"path\":\"/properties/-\",\n    \"value\":{\n      \"id\":\"5ec29396d4a5de40e44b1f5a\",\n      \"value\":{\n        \"label\":\"Some text\"\n      }\n    }\n  }\n]\n```\n### Upsert Drop-down Property\n\n```json\n[\n  {\n    \"op\":\"add\",\n    \"path\":\"/properties/-\",\n    \"value\":{\n      \"id\":\"5ec29396d4a5de40e44b1f5a\",\n      \"value\":{\n        \"id\":\"XXX\"\n      }\n    }\n  }\n]\n```\n\n### Upsert Drop-down Property via externalCode\n\n```json\n[\n  {\n    \"op\":\"add\",\n    \"path\":\"/properties/-\",\n    \"value\":{\n      \"id\":\"5ec29396d4a5de40e44b1f5a\",\n      \"value\":{\n        \"externalCode\":\"FULL_TIME\"\n      }\n    }\n  }\n]\n```\n\n### Remove a Property\n\n```json\n[\n  {\n    \"op\":\"add\",\n    \"path\":\"/properties/-\",\n    \"value\":{\n      \"id\":\"5ec29396d4a5de40e44b1f5a\",\n      \"value\":{}\n    }\n  }\n]\n```\n\n### Upsert Compensation\nCreate/update job `compensation` field. Sets `min`, `currency` and `period` values but leaves `max` null.\n```json\n[\n  {\n    \"op\":\"add\",\n    \"path\":\"/compensation\",\n    \"value\":{\n      \"min\":25,\n      \"max\":null,\n      \"currency\":\"PLN\",\n      \"period\":\"HOURLY\"\n    }\n  }\n]\n```\n\n### Upsert Compensation Properties\nUpdate job `compensation.min` and `compensation.currency` fields but leave current `compensation.max` and `compensation.period` intact.\n\n*Note: The compensation field must not be null. Use the previous approach if that's the case*\n\n```json\n[\n  {\n    \"op\": \"add\",\n    \"path\": \"/compensation/min\",\n    \"value\": 425\n  },\n  {\n    \"op\": \"add\",\n    \"path\": \"/compensation/currency\",\n    \"value\": \"USD\"\n  }\n]\n```\n### Delete Compensation Properties\nDelete the `currency.min` field but leave `compensation.max`, `compensation.currency` and `compensation.period` intact.\n```json\n[\n  {\n    \"op\": \"remove\",\n    \"path\": \"/compensation/min\"\n  }\n]\n```\n",
        "tags": [
          "jobs"
        ],
        "summary": "Update a job",
        "operationId": "jobs.patch",
        "security": [
          {
            "key": []
          },
          {
            "oauth": [
              "jobs_manage"
            ]
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/JSONPatch"
              },
              "examples": {
                "upsertFreeText": {
                  "summary": "Upsert Free Text Property",
                  "value": [
                    {
                      "op": "add",
                      "path": "/properties/-",
                      "value": {
                        "id": "5ec29396d4a5de40e44b1f5a",
                        "value": {
                          "label": "Some text"
                        }
                      }
                    }
                  ]
                },
                "upsertDropDown": {
                  "summary": "Upsert Drop-down Property",
                  "value": [
                    {
                      "op": "add",
                      "path": "/properties/-",
                      "value": {
                        "id": "5ec29396d4a5de40e44b1f5a",
                        "value": {
                          "id": "XXX"
                        }
                      }
                    }
                  ]
                },
                "upsertDropDownByExternalCode": {
                  "summary": "Upsert Drop-down Property via externalCode",
                  "value": [
                    {
                      "op": "add",
                      "path": "/properties/-",
                      "value": {
                        "id": "5ec29396d4a5de40e44b1f5a",
                        "value": {
                          "externalCode": "FULL_TIME"
                        }
                      }
                    }
                  ]
                },
                "removeProperty": {
                  "summary": "Remove a Property",
                  "value": [
                    {
                      "op": "add",
                      "path": "/properties/-",
                      "value": {
                        "id": "5ec29396d4a5de40e44b1f5a",
                        "value": {}
                      }
                    }
                  ]
                },
                "upsertCompensation": {
                  "summary": "Upsert Compensation",
                  "value": [
                    {
                      "op": "add",
                      "path": "/compensation",
                      "value": {
                        "min": 100,
                        "max": 200,
                        "currency": "USD",
                        "period": "HOURLY"
                      }
                    }
                  ]
                },
                "removeCompensation": {
                  "summary": "Remove Compensation",
                  "value": [
                    {
                      "op": "remove",
                      "path": "/compensation"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "key": {
        "type": "apiKey",
        "in": "header",
        "name": "x-smarttoken"
      },
      "oauth": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://www.smartrecruiters.com/identity/oauth/allow",
            "tokenUrl": "https://api.smartrecruiters.com/identity/oauth/token",
            "scopes": {
              "jobs_read": "Access Jobs",
              "jobs_manage": "Manage jobs",
              "jobs_publications_manage": "Publish Jobs"
            }
          }
        }
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "Action": {
        "type": "object",
        "required": [
          "url",
          "method"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "OPTIONS",
              "DELETE",
              "HEAD"
            ]
          }
        }
      },
      "Department": {
        "type": "object",
        "required": [
          "label"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "Location": {
        "type": "object",
        "required": [
          "city",
          "countryCode"
        ],
        "properties": {
          "country": {
            "type": "string",
            "minLength": 1
          },
          "countryCode": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2
          },
          "regionCode": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "city": {
            "type": "string",
            "minLength": 1
          },
          "address": {
            "type": "string",
            "format": "address"
          },
          "postalCode": {
            "type": "string"
          },
          "longitude": {
            "type": "string"
          },
          "latitude": {
            "type": "string"
          },
          "manual": {
            "type": "boolean"
          },
          "remote": {
            "type": "boolean"
          },
          "hybrid": {
            "type": "boolean"
          },
          "hybridDescription": {
            "type": "string",
            "maxLength": 60
          }
        }
      },
      "Job": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "refNumber": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "updatedOn": {
            "type": "string",
            "format": "date-time",
            "description": "Job modification date"
          },
          "lastActivityOn": {
            "type": "string",
            "format": "date-time",
            "description": "Indicates last activity associated with a job"
          },
          "department": {
            "$ref": "#/components/schemas/Department"
          },
          "location": {
            "$ref": "#/components/schemas/Location"
          },
          "status": {
            "$ref": "#/components/schemas/JobStatus"
          },
          "postingStatus": {
            "$ref": "#/components/schemas/PostingStatus"
          }
        }
      },
      "JobDetails": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Job"
          },
          {
            "type": "object",
            "properties": {
              "targetHiringDate": {
                "type": "string",
                "format": "date-time"
              },
              "hiringProcessId": {
                "type": "string",
                "description": "ID of hiring process associated with this job"
              },
              "industry": {
                "$ref": "#/components/schemas/Property"
              },
              "function": {
                "$ref": "#/components/schemas/Property"
              },
              "typeOfEmployment": {
                "$ref": "#/components/schemas/Property"
              },
              "experienceLevel": {
                "$ref": "#/components/schemas/Property"
              },
              "eeoCategory": {
                "$ref": "#/components/schemas/Property"
              },
              "template": {
                "type": "boolean"
              },
              "creator": {
                "$ref": "#/components/schemas/UserIdentity"
              },
              "compensation": {
                "$ref": "#/components/schemas/Compensation"
              },
              "jobAd": {
                "$ref": "#/components/schemas/JobAdInput"
              },
              "properties": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/JobProperty"
                }
              },
              "actions": {
                "type": "object",
                "properties": {
                  "hiringTeam": {
                    "$ref": "#/components/schemas/Action"
                  },
                  "publications": {
                    "$ref": "#/components/schemas/Action"
                  },
                  "positions": {
                    "$ref": "#/components/schemas/Action"
                  },
                  "applyOnWeb": {
                    "$ref": "#/components/schemas/Action"
                  },
                  "details": {
                    "$ref": "#/components/schemas/Action"
                  }
                }
              }
            }
          }
        ]
      },
      "JobAdInput": {
        "type": "object",
        "properties": {
          "sections": {
            "$ref": "#/components/schemas/JobAdSections"
          },
          "language": {
            "$ref": "#/components/schemas/Language"
          }
        }
      },
      "JobAdSections": {
        "type": "object",
        "properties": {
          "companyDescription": {
            "$ref": "#/components/schemas/JobAdSection"
          },
          "jobDescription": {
            "$ref": "#/components/schemas/JobAdSection"
          },
          "qualifications": {
            "$ref": "#/components/schemas/JobAdSection"
          },
          "additionalInformation": {
            "$ref": "#/components/schemas/JobAdSection"
          },
          "videos": {
            "$ref": "#/components/schemas/JobAdVideos"
          }
        }
      },
      "JobAdSection": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "text": {
            "type": "string",
            "maxLength": 24999
          }
        }
      },
      "JobAdVideos": {
        "type": "object",
        "properties": {
          "urls": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "video_url"
            }
          }
        }
      },
      "JobStatus": {
        "type": "string",
        "enum": [
          "CREATED",
          "SOURCING",
          "FILLED",
          "INTERVIEW",
          "OFFER",
          "CANCELLED",
          "ON_HOLD",
          "OTHER"
        ]
      },
      "PostingStatus": {
        "type": "string",
        "enum": [
          "PUBLIC",
          "INTERNAL",
          "NOT_PUBLISHED",
          "PRIVATE"
        ]
      },
      "Compensation": {
        "type": "object",
        "properties": {
          "min": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "max": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "period": {
            "description": "The time period to which the proposed min and max compensation values apply",
            "type": "string",
            "enum": [
              "HOURLY",
              "DAILY",
              "WEEKLY",
              "MONTHLY",
              "YEARLY"
            ],
            "nullable": true
          }
        }
      },
      "Language": {
        "type": "object",
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "labelNative": {
            "type": "string"
          }
        }
      },
      "JobProperty": {
        "type": "object",
        "required": [
          "id",
          "value"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "value": {
            "$ref": "#/components/schemas/JobPropertyValue"
          }
        }
      },
      "JobPropertyValue": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "externalCode": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Cross-system code identifying the value in an external system, when one is set."
          },
          "label": {
            "type": "string"
          }
        }
      },
      "Property": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "label": {
            "type": "string"
          }
        }
      },
      "UserIdentity": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          }
        }
      },
      "JSONPatch": {
        "type": "array",
        "items": {
          "type": "object",
          "description": "single JSON patch operation",
          "allOf": [
            {
              "$ref": "#/components/schemas/path"
            }
          ],
          "oneOf": [
            {
              "type": "object",
              "required": [
                "op",
                "value"
              ],
              "properties": {
                "op": {
                  "type": "string",
                  "enum": [
                    "add",
                    "replace",
                    "test"
                  ]
                },
                "value": {}
              }
            },
            {
              "type": "object",
              "required": [
                "op",
                "from"
              ],
              "properties": {
                "op": {
                  "type": "string",
                  "enum": [
                    "move",
                    "copy"
                  ]
                },
                "from": {
                  "$ref": "#/components/schemas/jsonPointer"
                }
              }
            },
            {
              "type": "object",
              "required": [
                "op"
              ],
              "properties": {
                "op": {
                  "type": "string",
                  "enum": [
                    "remove"
                  ]
                }
              }
            }
          ]
        },
        "example": [
          {
            "path": "/path",
            "op": "add",
            "value": "example"
          },
          {
            "path": "/path",
            "op": "move",
            "from": "/origin"
          },
          {
            "path": "/path",
            "op": "remove"
          }
        ]
      },
      "path": {
        "required": [
          "path"
        ],
        "properties": {
          "path": {
            "$ref": "#/components/schemas/jsonPointer"
          }
        }
      },
      "jsonPointer": {
        "type": "string",
        "pattern": "^(/[^/~]*(~[01][^/~]*)*)*$"
      }
    },
    "parameters": {
      "jobId": {
        "in": "path",
        "description": "job identifier",
        "name": "jobId",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.smartrecruiters.com"
    }
  ]
}
````