POST
/
users
/
{user_id}
/
dependants
/
bulk
cURL
curl --request POST \
  --url http://localhost:8080/users/{user_id}/dependants/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dependants": [
    {
      "date_of_birth": "2000-01-15",
      "first_name": "<string>",
      "gender": "male",
      "last_name": "<string>",
      "relationship": "self",
      "salutation": "mr"
    }
  ]
}
'
{
  "data": [
    {
      "created_at": "<string>",
      "date_of_birth": "2000-01-15",
      "first_name": "<string>",
      "gender": "male",
      "id": "<string>",
      "last_modified_at": "<string>",
      "last_name": "<string>",
      "primary_user_id": "<string>",
      "relationship": "self",
      "salutation": "mr",
      "status": "active",
      "previous_version_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT access token. Obtain from /auth/otp/verify endpoint.

Path Parameters

user_id
string
required

User ID

Body

application/json
dependants
object[]
required

Response

Dependants created

data
object[]
required