> This page is for Onboarding.

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

# Update Job Code

PUT https://api.paylocity.com/apiHub/payroll/v1/companies/{companyId}/jobs/{jobCode}
Content-Type: application/json

**Summary Description**

The PUT Job Code endpoint enables users to update precise values regarding Job Codes from the Paylocity instance of a client. In order to utilize this endpoint, it is necessary to provide the payload values in accordance with the established standards of the Paylocity API, as specified for the respective object type and description.  It is required to provide both the Company ID and the Job Code ID in the endpoint

**Use Cases**

- This API endpoint will allow an API user to update a Job Code record for a specific company ID and Job Code ID
- Job Codes must be added before running payroll


Reference: https://paylocity.ferndocs.com/onboarding/api-reference/latest/paylocity-ap-is/company-level-information-job-codes/update-job-code

## Authentication

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

## Request

### Path parameters

- `companyId` (string, required)
- `jobCode` (string, required)

## Response

### 200

Successful response

## Examples

**Request**

```json
{
  "description": "<string>",
  "isActive": "<boolean>",
  "isCertified": "<boolean>",
  "payEntry": {
    "shift": "<string>",
    "rateCode": "<string>",
    "rate": "<double>",
    "addingRateConstant": "<double>",
    "multiplyingRateConstant": "<double>",
    "workerComputedCode": "<string>",
    "tax": {
      "state": "<string>",
      "local1": "<string>",
      "local2": "<string>",
      "local3": "<string>",
      "labore0e_": {},
      "magnae1": {},
      "ipsum_1b": {}
    }
  },
  "address": {
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "county": "<string>",
    "country": "<string>"
  },
  "payrollBasedJournal": {
    "jobTitleCode": "<string>",
    "facilityId": "<string>",
    "stateId": "<string>",
    "dolor_7_e": {}
  }
}
```

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs/jobCode"

payload = {
    "description": "<string>",
    "isActive": "<boolean>",
    "isCertified": "<boolean>",
    "payEntry": {
        "shift": "<string>",
        "rateCode": "<string>",
        "rate": "<double>",
        "addingRateConstant": "<double>",
        "multiplyingRateConstant": "<double>",
        "workerComputedCode": "<string>",
        "tax": {
            "state": "<string>",
            "local1": "<string>",
            "local2": "<string>",
            "local3": "<string>",
            "labore0e_": {},
            "magnae1": {},
            "ipsum_1b": {}
        }
    },
    "address": {
        "line1": "<string>",
        "line2": "<string>",
        "city": "<string>",
        "state": "<string>",
        "zip": "<string>",
        "county": "<string>",
        "country": "<string>"
    },
    "payrollBasedJournal": {
        "jobTitleCode": "<string>",
        "facilityId": "<string>",
        "stateId": "<string>",
        "dolor_7_e": {}
    }
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs/jobCode';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"description":"<string>","isActive":"<boolean>","isCertified":"<boolean>","payEntry":{"shift":"<string>","rateCode":"<string>","rate":"<double>","addingRateConstant":"<double>","multiplyingRateConstant":"<double>","workerComputedCode":"<string>","tax":{"state":"<string>","local1":"<string>","local2":"<string>","local3":"<string>","labore0e_":{},"magnae1":{},"ipsum_1b":{}}},"address":{"line1":"<string>","line2":"<string>","city":"<string>","state":"<string>","zip":"<string>","county":"<string>","country":"<string>"},"payrollBasedJournal":{"jobTitleCode":"<string>","facilityId":"<string>","stateId":"<string>","dolor_7_e":{}}}'
};

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://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs/jobCode"

	payload := strings.NewReader("{\n  \"description\": \"<string>\",\n  \"isActive\": \"<boolean>\",\n  \"isCertified\": \"<boolean>\",\n  \"payEntry\": {\n    \"shift\": \"<string>\",\n    \"rateCode\": \"<string>\",\n    \"rate\": \"<double>\",\n    \"addingRateConstant\": \"<double>\",\n    \"multiplyingRateConstant\": \"<double>\",\n    \"workerComputedCode\": \"<string>\",\n    \"tax\": {\n      \"state\": \"<string>\",\n      \"local1\": \"<string>\",\n      \"local2\": \"<string>\",\n      \"local3\": \"<string>\",\n      \"labore0e_\": {},\n      \"magnae1\": {},\n      \"ipsum_1b\": {}\n    }\n  },\n  \"address\": {\n    \"line1\": \"<string>\",\n    \"line2\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"zip\": \"<string>\",\n    \"county\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"payrollBasedJournal\": {\n    \"jobTitleCode\": \"<string>\",\n    \"facilityId\": \"<string>\",\n    \"stateId\": \"<string>\",\n    \"dolor_7_e\": {}\n  }\n}")

	req, _ := http.NewRequest("PUT", 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://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs/jobCode")

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

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"description\": \"<string>\",\n  \"isActive\": \"<boolean>\",\n  \"isCertified\": \"<boolean>\",\n  \"payEntry\": {\n    \"shift\": \"<string>\",\n    \"rateCode\": \"<string>\",\n    \"rate\": \"<double>\",\n    \"addingRateConstant\": \"<double>\",\n    \"multiplyingRateConstant\": \"<double>\",\n    \"workerComputedCode\": \"<string>\",\n    \"tax\": {\n      \"state\": \"<string>\",\n      \"local1\": \"<string>\",\n      \"local2\": \"<string>\",\n      \"local3\": \"<string>\",\n      \"labore0e_\": {},\n      \"magnae1\": {},\n      \"ipsum_1b\": {}\n    }\n  },\n  \"address\": {\n    \"line1\": \"<string>\",\n    \"line2\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"zip\": \"<string>\",\n    \"county\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"payrollBasedJournal\": {\n    \"jobTitleCode\": \"<string>\",\n    \"facilityId\": \"<string>\",\n    \"stateId\": \"<string>\",\n    \"dolor_7_e\": {}\n  }\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.put("https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs/jobCode")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"description\": \"<string>\",\n  \"isActive\": \"<boolean>\",\n  \"isCertified\": \"<boolean>\",\n  \"payEntry\": {\n    \"shift\": \"<string>\",\n    \"rateCode\": \"<string>\",\n    \"rate\": \"<double>\",\n    \"addingRateConstant\": \"<double>\",\n    \"multiplyingRateConstant\": \"<double>\",\n    \"workerComputedCode\": \"<string>\",\n    \"tax\": {\n      \"state\": \"<string>\",\n      \"local1\": \"<string>\",\n      \"local2\": \"<string>\",\n      \"local3\": \"<string>\",\n      \"labore0e_\": {},\n      \"magnae1\": {},\n      \"ipsum_1b\": {}\n    }\n  },\n  \"address\": {\n    \"line1\": \"<string>\",\n    \"line2\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"zip\": \"<string>\",\n    \"county\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"payrollBasedJournal\": {\n    \"jobTitleCode\": \"<string>\",\n    \"facilityId\": \"<string>\",\n    \"stateId\": \"<string>\",\n    \"dolor_7_e\": {}\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs/jobCode', [
  'body' => '{
  "description": "<string>",
  "isActive": "<boolean>",
  "isCertified": "<boolean>",
  "payEntry": {
    "shift": "<string>",
    "rateCode": "<string>",
    "rate": "<double>",
    "addingRateConstant": "<double>",
    "multiplyingRateConstant": "<double>",
    "workerComputedCode": "<string>",
    "tax": {
      "state": "<string>",
      "local1": "<string>",
      "local2": "<string>",
      "local3": "<string>",
      "labore0e_": {},
      "magnae1": {},
      "ipsum_1b": {}
    }
  },
  "address": {
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "county": "<string>",
    "country": "<string>"
  },
  "payrollBasedJournal": {
    "jobTitleCode": "<string>",
    "facilityId": "<string>",
    "stateId": "<string>",
    "dolor_7_e": {}
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs/jobCode");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"description\": \"<string>\",\n  \"isActive\": \"<boolean>\",\n  \"isCertified\": \"<boolean>\",\n  \"payEntry\": {\n    \"shift\": \"<string>\",\n    \"rateCode\": \"<string>\",\n    \"rate\": \"<double>\",\n    \"addingRateConstant\": \"<double>\",\n    \"multiplyingRateConstant\": \"<double>\",\n    \"workerComputedCode\": \"<string>\",\n    \"tax\": {\n      \"state\": \"<string>\",\n      \"local1\": \"<string>\",\n      \"local2\": \"<string>\",\n      \"local3\": \"<string>\",\n      \"labore0e_\": {},\n      \"magnae1\": {},\n      \"ipsum_1b\": {}\n    }\n  },\n  \"address\": {\n    \"line1\": \"<string>\",\n    \"line2\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"zip\": \"<string>\",\n    \"county\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"payrollBasedJournal\": {\n    \"jobTitleCode\": \"<string>\",\n    \"facilityId\": \"<string>\",\n    \"stateId\": \"<string>\",\n    \"dolor_7_e\": {}\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "description": "<string>",
  "isActive": "<boolean>",
  "isCertified": "<boolean>",
  "payEntry": [
    "shift": "<string>",
    "rateCode": "<string>",
    "rate": "<double>",
    "addingRateConstant": "<double>",
    "multiplyingRateConstant": "<double>",
    "workerComputedCode": "<string>",
    "tax": [
      "state": "<string>",
      "local1": "<string>",
      "local2": "<string>",
      "local3": "<string>",
      "labore0e_": [],
      "magnae1": [],
      "ipsum_1b": []
    ]
  ],
  "address": [
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "county": "<string>",
    "country": "<string>"
  ],
  "payrollBasedJournal": [
    "jobTitleCode": "<string>",
    "facilityId": "<string>",
    "stateId": "<string>",
    "dolor_7_e": []
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs/jobCode")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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()
```