---
title: "Update a job post by ID"
method: PATCH
path: "/jobs/{job_id}"
tags: ["Job Posts"]
---

# Update a job post by ID

`PATCH /jobs/{job_id}`

## Request

- Base URL: `https://staging.api-golang.boilerplate.hng.tech/api/v1`
- URL: `https://staging.api-golang.boilerplate.hng.tech/api/v1/jobs/{job_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/docs/jobs/:job_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates the details of an existing job post.

## Path parameters

- `job_id` string, required

## Request body

- UpdateJobPost
  - `title` string
  - `salary_range` string
  - `job_type` string
  - `location` string
  - `deadline` string, date-time
  - `job_mode` string
  - `experience_level` string
  - `benefits` string
  - `company_name` string
  - `description` string
  - `key_responsibilities` string
  - `qualifications` string

## Response `200`

Job post updated successfully

- JobPostResponse
  - `status` string
  - `status_code` integer
  - `message` string
  - `data` JobPost
    - `id` string
    - `title` string
    - `salary_range` string
    - `job_type` string
    - `location` string
    - `deadline` string, date-time
    - `job_mode` string
    - `experience_level` string
    - `how_to_apply` string
    - `benefits` string
    - `company_name` string
    - `description` string
    - `key_responsibilities` string
    - `qualifications` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: Invalid ID format
- `404`: Job post not found
- `500`: Failed to update job post

## Changes

- **2024-08-08** `0e62b1539f9c`: 9 warning, 8 info
  - removed the request property `experience`
  - removed the request property `how_to_apply`
  - removed the request property `job_benefits`
  - removed the request property `salary`
  - …13 more
- **2024-08-07** `06cecc2ac126`: 8 warning, 9 info
  - removed the request property `benefits`
  - removed the request property `experience_level`
  - removed the request property `job_mode`
  - removed the request property `salary_range`
  - …13 more

[Operation history](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/changes/jobs/:job_id/patch.md)

---

[API](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger.md) - [All operations](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/llms.txt) - [OpenAPI document](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/revisions/2d1d3ed96bb9?raw)
