Public Create Pendency
curl --request POST \
--url https://public-api.salu.com.vc/dev/routes/v0/pendency/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"employee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"send_email": true,
"send_date": "2023-11-07T05:31:56Z",
"exam_date": "2023-12-25"
}
'import requests
url = "https://public-api.salu.com.vc/dev/routes/v0/pendency/"
payload = {
"employee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"send_email": True,
"send_date": "2023-11-07T05:31:56Z",
"exam_date": "2023-12-25"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
employee_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
send_email: true,
send_date: '2023-11-07T05:31:56Z',
exam_date: '2023-12-25'
})
};
fetch('https://public-api.salu.com.vc/dev/routes/v0/pendency/', 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/pendency/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'employee_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'send_email' => true,
'send_date' => '2023-11-07T05:31:56Z',
'exam_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/pendency/"
payload := strings.NewReader("{\n \"employee_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"send_email\": true,\n \"send_date\": \"2023-11-07T05:31:56Z\",\n \"exam_date\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://public-api.salu.com.vc/dev/routes/v0/pendency/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"employee_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"send_email\": true,\n \"send_date\": \"2023-11-07T05:31:56Z\",\n \"exam_date\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.salu.com.vc/dev/routes/v0/pendency/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"employee_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"send_email\": true,\n \"send_date\": \"2023-11-07T05:31:56Z\",\n \"exam_date\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"employee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type_exam": "HIRING",
"status": "ON_HOLD",
"priority": true,
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_display_name": "<string>",
"employee_name": "<string>",
"block_status": "EXAM_EXTENSION"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Pendencies
Create Pendency
POST
/
v0
/
pendency
/
Public Create Pendency
curl --request POST \
--url https://public-api.salu.com.vc/dev/routes/v0/pendency/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"employee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"send_email": true,
"send_date": "2023-11-07T05:31:56Z",
"exam_date": "2023-12-25"
}
'import requests
url = "https://public-api.salu.com.vc/dev/routes/v0/pendency/"
payload = {
"employee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"send_email": True,
"send_date": "2023-11-07T05:31:56Z",
"exam_date": "2023-12-25"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
employee_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
send_email: true,
send_date: '2023-11-07T05:31:56Z',
exam_date: '2023-12-25'
})
};
fetch('https://public-api.salu.com.vc/dev/routes/v0/pendency/', 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/pendency/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'employee_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'send_email' => true,
'send_date' => '2023-11-07T05:31:56Z',
'exam_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/pendency/"
payload := strings.NewReader("{\n \"employee_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"send_email\": true,\n \"send_date\": \"2023-11-07T05:31:56Z\",\n \"exam_date\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://public-api.salu.com.vc/dev/routes/v0/pendency/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"employee_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"send_email\": true,\n \"send_date\": \"2023-11-07T05:31:56Z\",\n \"exam_date\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.salu.com.vc/dev/routes/v0/pendency/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"employee_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"send_email\": true,\n \"send_date\": \"2023-11-07T05:31:56Z\",\n \"exam_date\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"employee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type_exam": "HIRING",
"status": "ON_HOLD",
"priority": true,
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_display_name": "<string>",
"employee_name": "<string>",
"block_status": "EXAM_EXTENSION"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Creates a new pendency (exam/process) for an employee.
Overview
- Method:
POST - Path:
/v0/pendency/ - OperationId:
public_create_pendency_v0_pendency__post - Authentication: header
x-api-key
Enum fields and translations
Use exactly the enum values as defined by the API. The values below must be sent exactly as shown.
type_exam
| Field (request) | Allowed values (API enum) | Meaning (EN) |
|---|---|---|
type_exam | HIRING | Pre-employment (admission) exam |
DISMISSAL | Dismissal/termination exam | |
PERIODIC | Periodic exam | |
RETURN | Return-to-work exam | |
RISK_CHANGE | Job risk change exam | |
INTERN_HIRING | Intern hiring exam |
Response enums (for reference)
| Field (response) | Allowed values | Meaning (EN) |
|---|---|---|
status | ON_HOLD | On hold |
PENDING | Pending | |
PRE_SCHEDULED | Pre-scheduled | |
SCHEDULED | Scheduled | |
DONE | Done/Completed | |
CANCELED | Canceled | |
ABSENT | Absent/no-show | |
MISSING_OHC | Missing OHC | |
NO_RESPONSE | No response |
Example request
curl -X POST "https://public-api.salu.com.vc/dev/routes/v0/pendency/" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "x-api-key: $SALU_PUBLIC_API_KEY" \
--data '{
"employee_id": "EMPLOYEE_UUID",
"type_exam": "HIRING",
"send_email": true,
"send_date": null
}'
Authorizations
Body
application/json
Available options:
HIRING, DISMISSAL, PERIODIC, RETURN, RISK_CHANGE, INTERN_HIRING, PUNCTUAL, CRITICAL_ACTIVITY, APPOINTMENT, APPOINTMENT_RETURN, MEDICAL_LEAVE, INFIRMARY, THIRD_PARTY, ANAMNESE, EMPLOYEE_ACTION Response
Successful Response
Available options:
HIRING, DISMISSAL, PERIODIC, RETURN, RISK_CHANGE, INTERN_HIRING, PUNCTUAL, CRITICAL_ACTIVITY, APPOINTMENT, APPOINTMENT_RETURN, MEDICAL_LEAVE, INFIRMARY, THIRD_PARTY, ANAMNESE, EMPLOYEE_ACTION Available options:
ON_HOLD, PENDING, PRE_SCHEDULED, SCHEDULED, DONE, CANCELED, ABSENT, MISSING_OHC, NO_RESPONSE Available options:
EXAM_EXTENSION, FINDING_CLINIC, BLOCKED_CLINIC, WAITING_FOR_HR_RESPONSE, WAITING_FOR_EMPLOYEE_RESPONSE, WAITING_FOR_HEALTH_TEAM_RESPONSE, WAITING_FOR_ENGINEERING_TEAM_RESPONSE, WAITING_FOR_PRE_PAYMENT, WAITING_FOR_CLINIC_RESPONSE, ARCHIVED, UNDER_MANAGEMENT, HR_RETURNED_PENDENCY, EMPLOYEE_ATTENDANCE_CONFIRMED