Add a member to a family

POST/families/{familyID}/members

Add a user to a family with a specific role.

Auth:Bearer

Path parameters

familyID

uuidrequired

Request body

user_id

User UUID to add

uuidrequired
role

owner | parent | guardianrequired

Response

status

string
Request
bash
curl -sS -X POST "https://phosra-api-sandbox-production.up.railway.app/api/v1/families/f0000000-0000-4000-8000-0000000000f1/members" \
  -H "Authorization: Bearer $PHOSRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "role": "guardian"
}'
Response
json
{
  "status": "string"
}