Families

These endpoints let you manage family information for employees in the system. It allows you to retrieve, create, update, and delete family records.

Get Families

get

Return the family approvals.

Authorizations
AuthorizationstringRequired

Bearer authentication header of the form Bearer <token>.

Path parameters
employeeIdstringRequiredExample: 0ab1c2d3-e4f5-6789-0123-456789abcdef
Responses
chevron-right
200

OK

application/json
totalPagesintegerRequired

Total number of pages available

lastbooleanRequired

Indicates whether this is the last page

totalElementsintegerRequired

Total number of elements across all pages

numberOfElementsintegerRequired

Number of elements in the current page

firstbooleanRequired

Indicates whether this is the first page

sizeintegerRequired

Size of the page (number of elements per page)

numberintegerRequired

Current page number (zero-indexed)

get
/core/v1/employees/{employeeId}/families/approvals

Create Family By Employee

post

Create a family by employee.

Authorizations
AuthorizationstringRequired

Bearer authentication header of the form Bearer <token>.

Path parameters
employeeIdstringRequiredExample: 0ab1c2d3-e4f5-6789-0123-456789abcdef
Body
namestring · min: 1 · max: 255Required
genderstring · enumRequiredPossible values:
dateOfBirthstring · dateOptional

YYYY-MM-DD

identityCardNumberstring · max: 255Optional
alivebooleanOptionalDefault: true
dateOfDeathstring · dateOptional

If left null and the individual is marked as not alive, the system will automatically set the date of death to the default value of December 31, 9999

maritalStatusstring · enumOptionalPossible values:
marriageDatestring · dateOptional

YYYY-MM-DD

jobstring · max: 255Optional

Alphanumeric with space, e.g. Software Engineer 1

Pattern: [a-zA-Z0-9 ]+
mobilePhonestring · max: 255Optional

e.g. +6281234567890

Pattern: ^[+]{1}[0-9-() ]+
descriptionstring · max: 65535Optional
Responses
post
/core/v1/employees/{employeeId}/families/approvals

Get Family

get

Return the family approval.

Authorizations
AuthorizationstringRequired

Bearer authentication header of the form Bearer <token>.

Path parameters
employeeIdstringRequiredExample: 0ab1c2d3-e4f5-6789-0123-456789abcdef
approvalIdstringRequiredExample: a1b2c3d4-e5f6-7890-abcd-ef0123456789
Responses
chevron-right
200

OK

application/json
idstringOptional
namestringOptional
genderstring · enumOptionalPossible values:
dateOfBirthstringOptional
identityCardNumberstringOptional
alivebooleanOptional
dateOfDeathstringOptional
maritalStatusstring · enumOptionalPossible values:
marriageDatestringOptional
jobstringOptional
mobilePhonestringOptional
descriptionstringOptional
approvalStatusstring · enumOptionalPossible values:
rejectionReasonstringOptional
get
/core/v1/employees/{employeeId}/families/approvals/{approvalId}

Update Family By Employee

put

Update the family by employee.

Authorizations
AuthorizationstringRequired

Bearer authentication header of the form Bearer <token>.

Path parameters
employeeIdstringRequiredExample: 0ab1c2d3-e4f5-6789-0123-456789abcdef
approvalIdstringRequiredExample: a1b2c3d4-e5f6-7890-abcd-ef0123456789
Body
namestring · min: 1 · max: 255Required
genderstring · enumRequiredPossible values:
dateOfBirthstring · dateOptional

YYYY-MM-DD

identityCardNumberstring · max: 255Optional
alivebooleanOptionalDefault: true
dateOfDeathstring · dateOptional

If left null and the individual is marked as not alive, the system will automatically set the date of death to the default value of December 31, 9999

maritalStatusstring · enumOptionalPossible values:
marriageDatestring · dateOptional

YYYY-MM-DD

jobstring · max: 255Optional

Alphanumeric with space, e.g. Software Engineer 1

Pattern: [a-zA-Z0-9 ]+
mobilePhonestring · max: 255Optional

e.g. +6281234567890

Pattern: ^[+]{1}[0-9-() ]+
descriptionstring · max: 65535Optional
Responses
chevron-right
200

OK

application/json
idstringOptional
namestringOptional
genderstring · enumOptionalPossible values:
dateOfBirthstringOptional
identityCardNumberstringOptional
alivebooleanOptional
dateOfDeathstringOptional
maritalStatusstring · enumOptionalPossible values:
marriageDatestringOptional
jobstringOptional
mobilePhonestringOptional
descriptionstringOptional
approvalStatusstring · enumOptionalPossible values:
rejectionReasonstringOptional
put
/core/v1/employees/{employeeId}/families/approvals/{approvalId}

Get Families

get

Return the families.

Authorizations
AuthorizationstringRequired

Bearer authentication header of the form Bearer <token>.

Query parameters
pageintegerOptional

Page number

Default: 0Example: 0
sizeinteger · min: 1 · max: 50Optional

Page size

Default: 10Example: 10
querystringOptional

Search Query

Supported KeysSupported OperatorsNotes
id:Equal operator
Support multiple values with each value separated by the ; delimiter
employee.id:Equal operator
Support multiple values with each value separated by the ; delimiter
Example: {"summary":"Search families by multiple IDs","value":"id:e18f5618-bc6c-11e6-80f5-76304dec7eb1;f38f5618-bc6c-11e6-80f5-76304dec7ec6"}
Responses
chevron-right
200

OK

application/json
totalPagesintegerRequired

Total number of pages available

lastbooleanRequired

Indicates whether this is the last page

totalElementsintegerRequired

Total number of elements across all pages

numberOfElementsintegerRequired

Number of elements in the current page

firstbooleanRequired

Indicates whether this is the first page

sizeintegerRequired

Size of the page (number of elements per page)

numberintegerRequired

Current page number (zero-indexed)

get
/core/v1/families

Approve Families

put

Approve the family approvals.

Authorizations
AuthorizationstringRequired

Bearer authentication header of the form Bearer <token>.

Bodyobject[]
idstringRequired

Unique identifier

Responses
chevron-right
200

OK

application/json
put
/core/v1/families/approvals/approve

Reject Families

put

Reject the family approvals.

Authorizations
AuthorizationstringRequired

Bearer authentication header of the form Bearer <token>.

Bodyobject[]
idstringRequired

Approval ID

reasonstringRequired

Reason of Rejection

Responses
chevron-right
200

OK

application/json
put
/core/v1/families/approvals/reject

Delete Family

delete

Delete the family.

Authorizations
AuthorizationstringRequired

Bearer authentication header of the form Bearer <token>.

Path parameters
employeeIdstringRequiredExample: 0ab1c2d3-e4f5-6789-0123-456789abcdef
familyIdstringRequiredExample: c3d4e5f6-a7b8-9012-cdef-01234567890b
Responses
chevron-right
200

OK

No content

delete
/core/v1/employees/{employeeId}/families/{familyId}

No content

Last updated