Skip to main content
PATCH
/
profile-nok-update
Update next of kin
curl --request PATCH \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/profile-nok-update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_name": "Bola",
  "last_name": "Johnson",
  "phone": "+2348098765432",
  "address": "5 Abuja Close, Garki",
  "relationship": "Spouse"
}
'
{
  "success": true,
  "status": 200,
  "data": {
    "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "first_name": "Bola",
    "last_name": "Johnson",
    "phone": "+2348098765432",
    "address": "5 Abuja Close, Garki",
    "relationship": "Spouse",
    "created_at": "2026-01-10T12:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

JWT access token obtained from /auth-verify (login context) or /auth-signup. Set the bearer_token environment variable in your API client to apply it globally.

Body

application/json
first_name
string
required
Required string length: 1 - 100
last_name
string
required
Required string length: 1 - 100
phone
string
required
Maximum string length: 20
address
string
required
Maximum string length: 500
relationship
string
required
Maximum string length: 100
Example:

"Spouse"

Response

Next of kin saved

success
boolean
Example:

true

status
integer
Example:

200

data
object