Skip to main content
POST
/
v0
/
pendency
/
cancel
Cancel Pendency
curl --request POST \
  --url https://public-api.salu.com.vc/dev/routes/v0/pendency/cancel \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "pendency_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "note": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "status": "ON_HOLD",
  "type_exam": "HIRING",
  "sla": "2023-11-07T05:31:56Z",
  "due_date": "2023-11-07T05:31:56Z",
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organization_soc_code": "<string>",
  "employee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "ohc_status": "PENDING",
  "note": "<string>",
  "organization_display_name": "<string>",
  "employee_name": "<string>",
  "employee_is_disabled": true
}
Cancels an existing pendency, when applicable.

Overview

  • Method: POST
  • Path: /v0/pendency/cancel
  • OperationId: public_cancel_pendency_v0_pendency_cancel_post
  • Authentication: header x-api-key

Example Request

curl -X POST "https://public-api.salu.com.vc/dev/routes/v0/pendency/cancel" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $SALU_PUBLIC_API_KEY" \
  --data '{
    "pendency_id": "PENDENCY_UUID",
    "note": "Cancellation requested by the client"
  }'

Authorizations

x-api-key
string
header
required

Body

application/json
pendency_id
string<uuid>
required
note
string | null

Response

Successful Response

id
string<uuid>
required
created_at
string<date-time>
required
status
enum<string>
required
Available options:
ON_HOLD,
PENDING,
PRE_SCHEDULED,
SCHEDULED,
DONE,
CANCELED,
ABSENT,
MISSING_OHC,
NO_RESPONSE
type_exam
enum<string>
required
Available options:
HIRING,
DISMISSAL,
PERIODIC,
RETURN,
RISK_CHANGE,
INTERN_HIRING,
PUNCTUAL,
CRITICAL_ACTIVITY,
APPOINTMENT,
APPOINTMENT_RETURN,
ANAMNESE,
EMPLOYEE_ACTION
sla
string<date-time>
required
due_date
string<date-time>
required
organization_id
string<uuid> | null
required
organization_soc_code
string
required
employee_id
string<uuid> | null
required
ohc_status
required
Available options:
PENDING,
PRE_SCHEDULED,
SCHEDULED,
MISSING_OHC,
DONE,
ABSENT,
CANCELED,
IN_ANALYSIS,
ATTACHED_OHC
note
string | null
organization_display_name
string | null
employee_name
string | null
employee_is_disabled
boolean | null