> ## Documentation Index
> Fetch the complete documentation index at: https://careerk.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Job

> Update an existing job posting

## Endpoint

```
PATCH /api/v1/companies/me/jobs/{jobId}
```

**Base URL**: `http://localhost:3000/api/v1`

<Note>This endpoint requires **authentication** and **Company role**.</Note>

## Authentication

Include the access token in the Authorization header:

```bash theme={null}
Authorization: Bearer YOUR_ACCESS_TOKEN
```

## Path Parameters

<ParamField name="jobId" type="string" required>
  The UUID of the job to update.
</ParamField>

## Request Body

All fields are optional - only provide the fields you want to update.

```json theme={null}
{
  "title": "Updated Job Title",
  "salaryMax": 30000,
  "skillNames": ["Node.js", "Python", "Docker"]
}
```

### Request Fields

<ParamField name="title" type="string" optional>
  Job title.
</ParamField>

<ParamField name="description" type="string" optional>
  Full job description.
</ParamField>

<ParamField name="requirements" type="string" optional>
  Job requirements.
</ParamField>

<ParamField name="responsibilities" type="string" optional>
  Job responsibilities.
</ParamField>

<ParamField name="location" type="string" optional>
  Job location.
</ParamField>

<ParamField name="salaryMin" type="number" optional>
  Minimum salary.
</ParamField>

<ParamField name="salaryMax" type="number" optional>
  Maximum salary.
</ParamField>

<ParamField name="jobType" type="enum" optional>
  Employment type. Values: `FULL_TIME`, `PART_TIME`, `CONTRACT`, `FREELANCE`, `INTERNSHIP`
</ParamField>

<ParamField name="workPreference" type="enum" optional>
  Work arrangement. Values: `ONSITE`, `REMOTE`, `HYBRID`, `ANY`
</ParamField>

<ParamField name="experienceLevel" type="enum" optional>
  Required experience level. Values: `ENTRY`, `JUNIOR`, `MID`, `SENIOR`, `LEAD`, `MANAGER`
</ParamField>

<ParamField name="deadline" type="string" optional>
  Application deadline in ISO 8601 format (YYYY-MM-DD).
</ParamField>

<ParamField name="skillNames" type="string[]" optional>
  Array of skill names. This will replace all existing skills. Skills will be created if they don't
  exist.
</ParamField>

## Response

### Success Response (200 OK)

```json theme={null}
{
  "success": true,
  "data": {
    "id": "6cc9f0af-10c0-4998-b252-fc6c52394759",
    "title": "Updated Job Title",
    "description": "Job Description",
    "requirements": null,
    "responsibilities": null,
    "location": null,
    "salaryMin": null,
    "salaryMax": 30000,
    "jobType": "FULL_TIME",
    "workPreference": "REMOTE",
    "experienceLevel": "MID",
    "status": "PUBLISHED",
    "deadline": null,
    "publishedAt": "2026-02-22T14:51:00.000Z",
    "company": {
      "id": "8cfee915-6e24-4741-9493-fd5680743a84",
      "name": "Tech Corp",
      "logoUrl": null
    },
    "skills": [
      {
        "skillId": "1d1d1d93-c910-47e3-b2ff-5f5bc2ce0541",
        "name": "Node.js"
      }
    ]
  },
  "message": "Success",
  "meta": {
    "timestamp": "2026-04-23T20:00:00.000Z",
    "path": "/companies/me/jobs/{jobId}",
    "method": "PATCH"
  }
}
```

## Error Responses

### 400 Bad Request - Validation Error

```json theme={null}
{
  "success": false,
  "error": {
    "message": ["title must be a string"],
    "statusCode": 400,
    "timestamp": "2026-04-23T20:00:00.000Z",
    "path": "/companies/me/jobs/{jobId}",
    "method": "PATCH",
    "details": "Bad Request"
  }
}
```

### 401 Unauthorized

```json theme={null}
{
  "success": false,
  "error": {
    "message": "Unauthorized",
    "statusCode": 401,
    "timestamp": "2026-04-23T20:00:00.000Z",
    "path": "/companies/me/jobs/{jobId}",
    "method": "PATCH",
    "details": "Unauthorized"
  }
}
```

### 403 Forbidden

```json theme={null}
{
  "success": false,
  "error": {
    "message": "Forbidden resource",
    "statusCode": 403,
    "timestamp": "2026-04-23T20:00:00.000Z",
    "path": "/companies/me/jobs/{jobId}",
    "method": "PATCH",
    "details": "Forbidden"
  }
}
```

### 404 Not Found

```json theme={null}
{
  "success": false,
  "error": {
    "message": "Job not found",
    "statusCode": 404,
    "timestamp": "2026-04-23T20:00:00.000Z",
    "path": "/companies/me/jobs/{jobId}",
    "method": "PATCH",
    "details": "Not Found"
  }
}
```

## Notes

<Tip>
  **Partial Update**: Only provide the fields you want to update. Other fields will remain
  unchanged.
</Tip>

<Tip>
  **Skill Replacement**: Providing skillNames will replace all existing skills with the new ones.
</Tip>
