PATCH
/
profile
/
bio
curl -X PATCH 'https://api.memsync.ai/profile/bio' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "bio": "A passionate software engineer specializing in AI applications for healthcare...",
    "format": "full",
    "style": "professional"
  }'
{
  "bio": "A passionate software engineer specializing in AI applications for healthcare, currently working at an innovative tech startup in San Francisco. With expertise in Python and machine learning, I collaborate with medical professionals to develop solutions that improve patient outcomes.",
  "format": "professional",
  "style": "formal", 
  "word_count": 38,
  "character_count": 253,
  "is_manual": true,
  "updated_at": "2024-01-15T16:45:00Z"
}
Allows users to customize their auto-generated bio or provide manual overrides for specific sections.
curl -X PATCH 'https://api.memsync.ai/profile/bio' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "bio": "A passionate software engineer specializing in AI applications for healthcare...",
    "format": "full",
    "style": "professional"
  }'

Request Body

bio
string
Custom biographical text to replace auto-generated content
format
string
Format for the bio. Options: full, short, bullets, professional
style
string
Writing style for auto-generation. Options: narrative, factual, casual, formal
regenerate
boolean
default:"false"
Whether to regenerate the bio using updated parameters
manual_override
boolean
default:"false"
Whether this is a manual override (prevents auto-regeneration)
include_categories
array
Specific categories to include in bio generation
exclude_categories
array
Categories to exclude from bio generation

Response

bio
string
Updated biographical text
format
string
Format of the bio
style
string
Writing style used
word_count
number
Number of words in the updated bio
character_count
number
Number of characters in the updated bio
is_manual
boolean
Whether this is a manual override
updated_at
string
ISO 8601 timestamp when bio was updated
{
  "bio": "A passionate software engineer specializing in AI applications for healthcare, currently working at an innovative tech startup in San Francisco. With expertise in Python and machine learning, I collaborate with medical professionals to develop solutions that improve patient outcomes.",
  "format": "professional",
  "style": "formal", 
  "word_count": 38,
  "character_count": 253,
  "is_manual": true,
  "updated_at": "2024-01-15T16:45:00Z"
}

Error Responses

400
object
Invalid request data
{
  "error": "Bio text too long",
  "code": "BIO_TOO_LONG",
  "max_length": 500,
  "current_length": 650
}
401
object
Unauthorized access
{
  "error": "Invalid or expired API key",
  "code": "UNAUTHORIZED"
}