Public Update Employee
curl --request PATCH \
--url https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"address": "<string>",
"address_number": "<string>",
"address_detail": "<string>",
"zip_code": "<string>",
"neighborhood": "<string>",
"state": "<string>",
"city": "<string>",
"name": "<string>",
"social_name": "<string>",
"gov_id": "<string>",
"birth_date": "2023-12-25",
"is_disabled": true,
"mother_name": "<string>",
"place_of_birth": "<string>",
"phone": "<string>",
"cell_phone": "<string>",
"email": "<string>",
"personal_email": "<string>",
"admission_date": "2023-12-25",
"hr_code": "<string>",
"employee_registration_number": "<string>",
"work_shift": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sector_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_integration_code": "<string>",
"dismissal_date": "2023-12-25"
}
'import requests
url = "https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id}"
payload = {
"address": "<string>",
"address_number": "<string>",
"address_detail": "<string>",
"zip_code": "<string>",
"neighborhood": "<string>",
"state": "<string>",
"city": "<string>",
"name": "<string>",
"social_name": "<string>",
"gov_id": "<string>",
"birth_date": "2023-12-25",
"is_disabled": True,
"mother_name": "<string>",
"place_of_birth": "<string>",
"phone": "<string>",
"cell_phone": "<string>",
"email": "<string>",
"personal_email": "<string>",
"admission_date": "2023-12-25",
"hr_code": "<string>",
"employee_registration_number": "<string>",
"work_shift": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sector_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_integration_code": "<string>",
"dismissal_date": "2023-12-25"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
address_number: '<string>',
address_detail: '<string>',
zip_code: '<string>',
neighborhood: '<string>',
state: '<string>',
city: '<string>',
name: '<string>',
social_name: '<string>',
gov_id: '<string>',
birth_date: '2023-12-25',
is_disabled: true,
mother_name: '<string>',
place_of_birth: '<string>',
phone: '<string>',
cell_phone: '<string>',
email: '<string>',
personal_email: '<string>',
admission_date: '2023-12-25',
hr_code: '<string>',
employee_registration_number: '<string>',
work_shift: '<string>',
organization_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
branch_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
position_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sector_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
client_integration_code: '<string>',
dismissal_date: '2023-12-25'
})
};
fetch('https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'address' => '<string>',
'address_number' => '<string>',
'address_detail' => '<string>',
'zip_code' => '<string>',
'neighborhood' => '<string>',
'state' => '<string>',
'city' => '<string>',
'name' => '<string>',
'social_name' => '<string>',
'gov_id' => '<string>',
'birth_date' => '2023-12-25',
'is_disabled' => true,
'mother_name' => '<string>',
'place_of_birth' => '<string>',
'phone' => '<string>',
'cell_phone' => '<string>',
'email' => '<string>',
'personal_email' => '<string>',
'admission_date' => '2023-12-25',
'hr_code' => '<string>',
'employee_registration_number' => '<string>',
'work_shift' => '<string>',
'organization_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'branch_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'position_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sector_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'client_integration_code' => '<string>',
'dismissal_date' => '2023-12-25'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id}"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"address_number\": \"<string>\",\n \"address_detail\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"neighborhood\": \"<string>\",\n \"state\": \"<string>\",\n \"city\": \"<string>\",\n \"name\": \"<string>\",\n \"social_name\": \"<string>\",\n \"gov_id\": \"<string>\",\n \"birth_date\": \"2023-12-25\",\n \"is_disabled\": true,\n \"mother_name\": \"<string>\",\n \"place_of_birth\": \"<string>\",\n \"phone\": \"<string>\",\n \"cell_phone\": \"<string>\",\n \"email\": \"<string>\",\n \"personal_email\": \"<string>\",\n \"admission_date\": \"2023-12-25\",\n \"hr_code\": \"<string>\",\n \"employee_registration_number\": \"<string>\",\n \"work_shift\": \"<string>\",\n \"organization_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"branch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"position_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sector_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"client_integration_code\": \"<string>\",\n \"dismissal_date\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"address_number\": \"<string>\",\n \"address_detail\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"neighborhood\": \"<string>\",\n \"state\": \"<string>\",\n \"city\": \"<string>\",\n \"name\": \"<string>\",\n \"social_name\": \"<string>\",\n \"gov_id\": \"<string>\",\n \"birth_date\": \"2023-12-25\",\n \"is_disabled\": true,\n \"mother_name\": \"<string>\",\n \"place_of_birth\": \"<string>\",\n \"phone\": \"<string>\",\n \"cell_phone\": \"<string>\",\n \"email\": \"<string>\",\n \"personal_email\": \"<string>\",\n \"admission_date\": \"2023-12-25\",\n \"hr_code\": \"<string>\",\n \"employee_registration_number\": \"<string>\",\n \"work_shift\": \"<string>\",\n \"organization_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"branch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"position_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sector_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"client_integration_code\": \"<string>\",\n \"dismissal_date\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"address_number\": \"<string>\",\n \"address_detail\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"neighborhood\": \"<string>\",\n \"state\": \"<string>\",\n \"city\": \"<string>\",\n \"name\": \"<string>\",\n \"social_name\": \"<string>\",\n \"gov_id\": \"<string>\",\n \"birth_date\": \"2023-12-25\",\n \"is_disabled\": true,\n \"mother_name\": \"<string>\",\n \"place_of_birth\": \"<string>\",\n \"phone\": \"<string>\",\n \"cell_phone\": \"<string>\",\n \"email\": \"<string>\",\n \"personal_email\": \"<string>\",\n \"admission_date\": \"2023-12-25\",\n \"hr_code\": \"<string>\",\n \"employee_registration_number\": \"<string>\",\n \"work_shift\": \"<string>\",\n \"organization_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"branch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"position_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sector_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"client_integration_code\": \"<string>\",\n \"dismissal_date\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"is_disabled": true,
"status": "<string>",
"sex": "<string>",
"admission_date": "2023-12-25",
"is_active": true,
"organization": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"branch": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"position": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"sector": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"social_name": "<string>",
"gov_id": "<string>",
"birth_date": "2023-12-25",
"gender": "<string>",
"mother_name": "<string>",
"marital_status": "<string>",
"place_of_birth": "<string>",
"educational_stage": "<string>",
"human_skin_tone": "<string>",
"phone": "<string>",
"cell_phone": "<string>",
"email": "<string>",
"personal_email": "<string>",
"dismissal_date": "2023-12-25",
"hr_code": "<string>",
"employee_registration_number": "<string>",
"work_shift": "<string>",
"client_integration_code": "<string>",
"address": {
"address": "<string>",
"address_number": "<string>",
"address_detail": "<string>",
"zip_code": "<string>",
"neighborhood": "<string>",
"state": "<string>",
"city": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Employees
Update Employee
PATCH
/
v0
/
employee
/
{employee_id}
Public Update Employee
curl --request PATCH \
--url https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"address": "<string>",
"address_number": "<string>",
"address_detail": "<string>",
"zip_code": "<string>",
"neighborhood": "<string>",
"state": "<string>",
"city": "<string>",
"name": "<string>",
"social_name": "<string>",
"gov_id": "<string>",
"birth_date": "2023-12-25",
"is_disabled": true,
"mother_name": "<string>",
"place_of_birth": "<string>",
"phone": "<string>",
"cell_phone": "<string>",
"email": "<string>",
"personal_email": "<string>",
"admission_date": "2023-12-25",
"hr_code": "<string>",
"employee_registration_number": "<string>",
"work_shift": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sector_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_integration_code": "<string>",
"dismissal_date": "2023-12-25"
}
'import requests
url = "https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id}"
payload = {
"address": "<string>",
"address_number": "<string>",
"address_detail": "<string>",
"zip_code": "<string>",
"neighborhood": "<string>",
"state": "<string>",
"city": "<string>",
"name": "<string>",
"social_name": "<string>",
"gov_id": "<string>",
"birth_date": "2023-12-25",
"is_disabled": True,
"mother_name": "<string>",
"place_of_birth": "<string>",
"phone": "<string>",
"cell_phone": "<string>",
"email": "<string>",
"personal_email": "<string>",
"admission_date": "2023-12-25",
"hr_code": "<string>",
"employee_registration_number": "<string>",
"work_shift": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sector_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_integration_code": "<string>",
"dismissal_date": "2023-12-25"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
address_number: '<string>',
address_detail: '<string>',
zip_code: '<string>',
neighborhood: '<string>',
state: '<string>',
city: '<string>',
name: '<string>',
social_name: '<string>',
gov_id: '<string>',
birth_date: '2023-12-25',
is_disabled: true,
mother_name: '<string>',
place_of_birth: '<string>',
phone: '<string>',
cell_phone: '<string>',
email: '<string>',
personal_email: '<string>',
admission_date: '2023-12-25',
hr_code: '<string>',
employee_registration_number: '<string>',
work_shift: '<string>',
organization_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
branch_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
position_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sector_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
client_integration_code: '<string>',
dismissal_date: '2023-12-25'
})
};
fetch('https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'address' => '<string>',
'address_number' => '<string>',
'address_detail' => '<string>',
'zip_code' => '<string>',
'neighborhood' => '<string>',
'state' => '<string>',
'city' => '<string>',
'name' => '<string>',
'social_name' => '<string>',
'gov_id' => '<string>',
'birth_date' => '2023-12-25',
'is_disabled' => true,
'mother_name' => '<string>',
'place_of_birth' => '<string>',
'phone' => '<string>',
'cell_phone' => '<string>',
'email' => '<string>',
'personal_email' => '<string>',
'admission_date' => '2023-12-25',
'hr_code' => '<string>',
'employee_registration_number' => '<string>',
'work_shift' => '<string>',
'organization_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'branch_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'position_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sector_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'client_integration_code' => '<string>',
'dismissal_date' => '2023-12-25'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id}"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"address_number\": \"<string>\",\n \"address_detail\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"neighborhood\": \"<string>\",\n \"state\": \"<string>\",\n \"city\": \"<string>\",\n \"name\": \"<string>\",\n \"social_name\": \"<string>\",\n \"gov_id\": \"<string>\",\n \"birth_date\": \"2023-12-25\",\n \"is_disabled\": true,\n \"mother_name\": \"<string>\",\n \"place_of_birth\": \"<string>\",\n \"phone\": \"<string>\",\n \"cell_phone\": \"<string>\",\n \"email\": \"<string>\",\n \"personal_email\": \"<string>\",\n \"admission_date\": \"2023-12-25\",\n \"hr_code\": \"<string>\",\n \"employee_registration_number\": \"<string>\",\n \"work_shift\": \"<string>\",\n \"organization_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"branch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"position_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sector_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"client_integration_code\": \"<string>\",\n \"dismissal_date\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"address_number\": \"<string>\",\n \"address_detail\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"neighborhood\": \"<string>\",\n \"state\": \"<string>\",\n \"city\": \"<string>\",\n \"name\": \"<string>\",\n \"social_name\": \"<string>\",\n \"gov_id\": \"<string>\",\n \"birth_date\": \"2023-12-25\",\n \"is_disabled\": true,\n \"mother_name\": \"<string>\",\n \"place_of_birth\": \"<string>\",\n \"phone\": \"<string>\",\n \"cell_phone\": \"<string>\",\n \"email\": \"<string>\",\n \"personal_email\": \"<string>\",\n \"admission_date\": \"2023-12-25\",\n \"hr_code\": \"<string>\",\n \"employee_registration_number\": \"<string>\",\n \"work_shift\": \"<string>\",\n \"organization_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"branch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"position_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sector_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"client_integration_code\": \"<string>\",\n \"dismissal_date\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.salu.com.vc/dev/routes/v0/employee/{employee_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"address_number\": \"<string>\",\n \"address_detail\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"neighborhood\": \"<string>\",\n \"state\": \"<string>\",\n \"city\": \"<string>\",\n \"name\": \"<string>\",\n \"social_name\": \"<string>\",\n \"gov_id\": \"<string>\",\n \"birth_date\": \"2023-12-25\",\n \"is_disabled\": true,\n \"mother_name\": \"<string>\",\n \"place_of_birth\": \"<string>\",\n \"phone\": \"<string>\",\n \"cell_phone\": \"<string>\",\n \"email\": \"<string>\",\n \"personal_email\": \"<string>\",\n \"admission_date\": \"2023-12-25\",\n \"hr_code\": \"<string>\",\n \"employee_registration_number\": \"<string>\",\n \"work_shift\": \"<string>\",\n \"organization_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"branch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"position_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sector_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"client_integration_code\": \"<string>\",\n \"dismissal_date\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"is_disabled": true,
"status": "<string>",
"sex": "<string>",
"admission_date": "2023-12-25",
"is_active": true,
"organization": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"branch": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"position": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"sector": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"social_name": "<string>",
"gov_id": "<string>",
"birth_date": "2023-12-25",
"gender": "<string>",
"mother_name": "<string>",
"marital_status": "<string>",
"place_of_birth": "<string>",
"educational_stage": "<string>",
"human_skin_tone": "<string>",
"phone": "<string>",
"cell_phone": "<string>",
"email": "<string>",
"personal_email": "<string>",
"dismissal_date": "2023-12-25",
"hr_code": "<string>",
"employee_registration_number": "<string>",
"work_shift": "<string>",
"client_integration_code": "<string>",
"address": {
"address": "<string>",
"address_number": "<string>",
"address_detail": "<string>",
"zip_code": "<string>",
"neighborhood": "<string>",
"state": "<string>",
"city": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Updates an existing employee.
This endpoint behaves like a real PATCH.
- Send only the fields you want to update.
- You do not need to resend all employee fields.
- Omitted fields will not be changed.
Overview
Fields
| Field | Description |
|---|---|
gov_id (CPF) | Person / Employee identifier In Brazil, every individual has a CPF (Cadastro de Pessoa Física), which is the national taxpayer ID for a person. It’s unique per person and typically does not change. In our API we expose it as gov_id. In practice, it plays a role similar to SSN (US) or a national personal tax ID in other countries. Key point: gov_id identifies the human being, not the employment relationship. |
hr_code | “Matrícula RH” (internal company HR ID) — optional hr_code corresponds to Matrícula RH, which is an internal employee code created by the company for HR/payroll/admin systems. Optional (not required by law). Used for internal controls and integrations with the company’s HRIS/payroll tools. Can vary by company and can change if the company migrates systems. Think of it as a typical Employee ID inside an organization. |
employee_registration_number | “Matrícula eSocial” (government employment link ID) — required (when applicable) employee_registration_number corresponds to Matrícula eSocial, which is an official identifier tied to the formal employment relationship under Brazilian labor law (CLT). Mandatory by law for formal employment reporting (eSocial). It is unique per employment relationship (per “job link”), not necessarily per person for life. It may not be available at onboarding, because it’s usually assigned/confirmed only after payroll/accounting formally registers the employee, including the CTPS registration. Important nuance: A person ( gov_id) can exist in the system before the Matrícula eSocial is known. Once the employment is formalized, employee_registration_number becomes the official “government-side” reference for that employment link. |
- Method:
PATCH - Path:
/v0/employee/{employee_id} - OperationId:
public_update_employee_v0_employee__employee_id__patch - Authentication: header
x-api-key
Example requests
1) Minimal partial update (single field)
curl -X PATCH "https://public-api.salu.com.vc/dev/routes/v0/employee/EMPLOYEE_ID_HERE" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "x-api-key: $SALU_PUBLIC_API_KEY" \
--data '{
"employee_name": "Jane A. Doe"
}'
employee_name field is changed; all other employee fields remain untouched.
2) Multiple fields update (omitting the rest)
curl -X PATCH "https://public-api.salu.com.vc/dev/routes/v0/employee/EMPLOYEE_ID_HERE" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "x-api-key: $SALU_PUBLIC_API_KEY" \
--data '{
"employee_name": "Jane A. Doe",
"is_active": true,
"client_integration_code": "EMP-001-INT"
}'
employee_name, is_active, client_integration_code) will be updated; everything else remains unchanged.Authorizations
Path Parameters
Body
application/json
Available options:
Ativo, Inativo, Afastado, Férias, Pendente Available options:
M, F Available options:
Cis, Trans Available options:
Não informado, Solteiro, Casado, Separado, Desquitado, Viúvo, Outros, Divorciado, União Estável Available options:
Indefinida, Ensino Fundamental Incompleto, Ensino Fundamental Completo, Ensino Medio Incompleto, Ensino Medio Completo, Ensino Superior Incompleto, Ensino Superior Completo, Profissionalizante, Técnico Incompleto, Técnico Completo, Tecnólogo Incompleto, Tecnólogo Completo, Pós-graduação Incompleta, Pós-graduação Completo, Mestrado Incompleto, Mestrado Completo, Doutorado Incompleto, Doutorado Completo, PHD Incompleto, PHD Completo, Não Informado, Analfabeto Available options:
Indefinido, Branca, Preta, Parda, Amarela, Indígena, Mulato Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I