Skip to main content
POST
/
v0
/
pendency
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",
  "type_exam": "HIRING",
  "send_email": true,
  "send_date": "2023-11-07T05:31:56Z",
  "exam_date": "2023-12-25"
}
'
{
  "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"
}
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_examHIRINGPre-employment (admission) exam
DISMISSALDismissal/termination exam
PERIODICPeriodic exam
RETURNReturn-to-work exam
RISK_CHANGEJob risk change exam
INTERN_HIRINGIntern hiring exam

Response enums (for reference)

Field (response)Allowed valuesMeaning (EN)
statusON_HOLDOn hold
PENDINGPending
PRE_SCHEDULEDPre-scheduled
SCHEDULEDScheduled
DONEDone/Completed
CANCELEDCanceled
ABSENTAbsent/no-show
MISSING_OHCMissing OHC
NO_RESPONSENo 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

x-api-key
string
header
required

Body

application/json
employee_id
string<uuid>
required
type_exam
enum<string>
required
Available options:
HIRING,
DISMISSAL,
PERIODIC,
RETURN,
RISK_CHANGE,
INTERN_HIRING,
PUNCTUAL,
CRITICAL_ACTIVITY,
APPOINTMENT,
APPOINTMENT_RETURN,
ANAMNESE,
EMPLOYEE_ACTION
send_email
boolean
required
send_date
string<date-time> | null
exam_date
string<date> | null

Response

Successful Response

id
string<uuid>
required
employee_id
string<uuid>
required
type_exam
enum<string>
required
Available options:
HIRING,
DISMISSAL,
PERIODIC,
RETURN,
RISK_CHANGE,
INTERN_HIRING,
PUNCTUAL,
CRITICAL_ACTIVITY,
APPOINTMENT,
APPOINTMENT_RETURN,
ANAMNESE,
EMPLOYEE_ACTION
status
enum<string>
required
Available options:
ON_HOLD,
PENDING,
PRE_SCHEDULED,
SCHEDULED,
DONE,
CANCELED,
ABSENT,
MISSING_OHC,
NO_RESPONSE
priority
boolean
required
created_at
string<date-time>
required
created_by
string
required
updated_at
string<date-time>
required
updated_by
string
required
organization_id
string<uuid>
required
organization_display_name
string | null
required
employee_name
string | null
required
block_status
enum<string> | null
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,
ARCHIVED,
UNDER_MANAGEMENT,
HR_RETURNED_PENDENCY,
EMPLOYEE_ATTENDANCE_CONFIRMED