> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.a1.uk.astutepayroll.in/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.a1.uk.astutepayroll.in/_mcp/server.

# Update Job

PATCH {{baseUrl}}/employees/{employeeUuid}/engagements/{engagementUuid}/jobs/{jobUuid}
Content-Type: application/json

Update a job record.

Reference: https://docs.a1.uk.astutepayroll.in/api-reference/employee/update-job

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `employeeUuid` (string, required) — User id of the employee (not a UUID)
- `engagementUuid` (string, required) — UUID of the engagement
- `jobUuid` (string, required) — UUID of the job to update

### Headers

- `vnd.a1.tenant-id` (string, optional) — Tenant identifier for multi-tenant environments

### Body (application/json)

This endpoint expects an object.

- `jobDetails` (EmployeesEmployeeUuidEngagementsEngagementUuidJobsJobUuidPatchRequestBodyContentApplicationJsonSchemaJobDetails, required) — Job details. Replaced as a whole, so send every field; missing ones, including the approvers, are cleared.
- `customerUuid` (string, optional) — Customer UUID
- `enableLeave` (boolean, optional)
- `enableExpenses` (boolean, optional)
- `payFrequency` (string, optional)
- `timesheetType` (string, optional)
- `timesheetEnable` (boolean, optional) — Send the current value with every update. If the job has submitted timesheets, an update that leaves it out or sets it to false is rejected.
- `fixedPayItems` (boolean, optional)
- `timesheetLength` (string, optional)
- `variableTimesheet` (boolean, optional)
- `splitShifts` (boolean, optional)
- `timesheetForPayroll` (boolean, optional)
- `timesheetStart` (string, optional) — Timesheet start day, 0 (Monday) to 6 (Sunday), or 1 to 31 for monthly timesheets. Send the current value with every update; if it is missing it is reset to 0.
- `rateCard` (string, optional)
- `ruleGroup` (string, optional)
- `companyUuid` (string, optional) — Payroll company UUID for the job. Must be an existing company.
- `billingGroupUuid` (string, optional)
- `glGroupUuid` (string, optional)

## Response

### 200

Job updated successfully

- `id` (string, optional) — UUID of the job
- `affected` (integer, optional)
- `eventJobId` (string, optional)

## Errors

### 400 Bad Request Error

Bad Request

- `any`

### 404 Not Found Error

Job not found

- `any`

## Types

### EmployeesEmployeeUuidEngagementsEngagementUuidJobsJobUuidPatchRequestBodyContentApplicationJsonSchemaJobDetails

Job details. Replaced as a whole, so send every field; missing ones, including the approvers, are cleared.

- `startDate` (date, required)
- `finishDate` (date, optional)
- `timesheetStartDate` (date, optional)
- `payRate` (string, optional) — Pay rate shown on the job details. It does not change the pay rate used for timesheets, which comes from the dated rates (`payRates`) set when the employee is created.
- `payRateCurrency` (string, optional)
- `payRateInterval` (string, optional)
- `payMultiplier` (string, optional)
- `primaryApprover` (string, optional) — Primary approver profile UUID
- `secondaryApprover` (string, optional) — Secondary approver profile UUID
- `primaryRecruiterId` (string, optional)
- `workplace` (EmployeesEmployeeUuidEngagementsEngagementUuidJobsJobUuidPatchRequestBodyContentApplicationJsonSchemaJobDetailsWorkplace, optional) — Workplace details override

### EmployeesEmployeeUuidEngagementsEngagementUuidJobsJobUuidPatchRequestBodyContentApplicationJsonSchemaJobDetailsWorkplace

Workplace details override

- `name` (string, optional)
- `address` (EmployeesEmployeeUuidEngagementsEngagementUuidJobsJobUuidPatchRequestBodyContentApplicationJsonSchemaJobDetailsWorkplaceAddress, optional)

### EmployeesEmployeeUuidEngagementsEngagementUuidJobsJobUuidPatchRequestBodyContentApplicationJsonSchemaJobDetailsWorkplaceAddress

- `line1` (string, optional)
- `line2` (string, optional)
- `townCity` (string, optional)
- `country` (string, optional)
- `foreignCountry` (string, optional)
- `postcode` (string, optional)
- `state` (string, optional)

## Examples

**Request**

```json
{
  "jobDetails": {
    "startDate": "2024-01-15",
    "timesheetStartDate": "2024-01-15",
    "payRate": "25.5",
    "primaryApprover": "327439da-1dd1-40df-bddb-1656bc04a1a6"
  },
  "timesheetEnable": true,
  "timesheetStart": "0"
}
```

**Response**

```json
{
  "id": "3c2b1a0f-9e8d-7c6b-5a4f-3e2d1c0b9a8f",
  "affected": 1,
  "eventJobId": "112"
}
```

**SDK Code**

```python
import requests

url = "https://{{baseurl}}/employees/axgZDy2kxi6mbvC9sNDL5dMs/engagements/8a4f3e2d-1b2c-3d4e-5f6a-7b8c9d0e1f2a/jobs/3c2b1a0f-9e8d-7c6b-5a4f-3e2d1c0b9a8f"

payload = {
    "jobDetails": {
        "startDate": "2024-01-15",
        "timesheetStartDate": "2024-01-15",
        "payRate": "25.5",
        "primaryApprover": "327439da-1dd1-40df-bddb-1656bc04a1a6"
    },
    "timesheetEnable": True,
    "timesheetStart": "0"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://{{baseurl}}/employees/axgZDy2kxi6mbvC9sNDL5dMs/engagements/8a4f3e2d-1b2c-3d4e-5f6a-7b8c9d0e1f2a/jobs/3c2b1a0f-9e8d-7c6b-5a4f-3e2d1c0b9a8f';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"jobDetails":{"startDate":"2024-01-15","timesheetStartDate":"2024-01-15","payRate":"25.5","primaryApprover":"327439da-1dd1-40df-bddb-1656bc04a1a6"},"timesheetEnable":true,"timesheetStart":"0"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://{{baseurl}}/employees/axgZDy2kxi6mbvC9sNDL5dMs/engagements/8a4f3e2d-1b2c-3d4e-5f6a-7b8c9d0e1f2a/jobs/3c2b1a0f-9e8d-7c6b-5a4f-3e2d1c0b9a8f"

	payload := strings.NewReader("{\n  \"jobDetails\": {\n    \"startDate\": \"2024-01-15\",\n    \"timesheetStartDate\": \"2024-01-15\",\n    \"payRate\": \"25.5\",\n    \"primaryApprover\": \"327439da-1dd1-40df-bddb-1656bc04a1a6\"\n  },\n  \"timesheetEnable\": true,\n  \"timesheetStart\": \"0\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://{{baseurl}}/employees/axgZDy2kxi6mbvC9sNDL5dMs/engagements/8a4f3e2d-1b2c-3d4e-5f6a-7b8c9d0e1f2a/jobs/3c2b1a0f-9e8d-7c6b-5a4f-3e2d1c0b9a8f")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"jobDetails\": {\n    \"startDate\": \"2024-01-15\",\n    \"timesheetStartDate\": \"2024-01-15\",\n    \"payRate\": \"25.5\",\n    \"primaryApprover\": \"327439da-1dd1-40df-bddb-1656bc04a1a6\"\n  },\n  \"timesheetEnable\": true,\n  \"timesheetStart\": \"0\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://{{baseurl}}/employees/axgZDy2kxi6mbvC9sNDL5dMs/engagements/8a4f3e2d-1b2c-3d4e-5f6a-7b8c9d0e1f2a/jobs/3c2b1a0f-9e8d-7c6b-5a4f-3e2d1c0b9a8f")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"jobDetails\": {\n    \"startDate\": \"2024-01-15\",\n    \"timesheetStartDate\": \"2024-01-15\",\n    \"payRate\": \"25.5\",\n    \"primaryApprover\": \"327439da-1dd1-40df-bddb-1656bc04a1a6\"\n  },\n  \"timesheetEnable\": true,\n  \"timesheetStart\": \"0\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://{{baseurl}}/employees/axgZDy2kxi6mbvC9sNDL5dMs/engagements/8a4f3e2d-1b2c-3d4e-5f6a-7b8c9d0e1f2a/jobs/3c2b1a0f-9e8d-7c6b-5a4f-3e2d1c0b9a8f', [
  'body' => '{
  "jobDetails": {
    "startDate": "2024-01-15",
    "timesheetStartDate": "2024-01-15",
    "payRate": "25.5",
    "primaryApprover": "327439da-1dd1-40df-bddb-1656bc04a1a6"
  },
  "timesheetEnable": true,
  "timesheetStart": "0"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://{{baseurl}}/employees/axgZDy2kxi6mbvC9sNDL5dMs/engagements/8a4f3e2d-1b2c-3d4e-5f6a-7b8c9d0e1f2a/jobs/3c2b1a0f-9e8d-7c6b-5a4f-3e2d1c0b9a8f");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"jobDetails\": {\n    \"startDate\": \"2024-01-15\",\n    \"timesheetStartDate\": \"2024-01-15\",\n    \"payRate\": \"25.5\",\n    \"primaryApprover\": \"327439da-1dd1-40df-bddb-1656bc04a1a6\"\n  },\n  \"timesheetEnable\": true,\n  \"timesheetStart\": \"0\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "jobDetails": [
    "startDate": "2024-01-15",
    "timesheetStartDate": "2024-01-15",
    "payRate": "25.5",
    "primaryApprover": "327439da-1dd1-40df-bddb-1656bc04a1a6"
  ],
  "timesheetEnable": true,
  "timesheetStart": "0"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://{{baseurl}}/employees/axgZDy2kxi6mbvC9sNDL5dMs/engagements/8a4f3e2d-1b2c-3d4e-5f6a-7b8c9d0e1f2a/jobs/3c2b1a0f-9e8d-7c6b-5a4f-3e2d1c0b9a8f")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```