Update Subject
/subjects/{subject_id}
Update Subject
Path Parameters
subject_id: string
Body Parameters
email: string
The email of the subject. Must be a valid email address.
formatemail
metadata: map[string]
Additional metadata about the subject. You may use this to store any custom data about the subject.
name: string
The name of the subject. Used for display in the dashboard.
Returns
Update Subject
curl https://api.uselark.ai/subjects/$SUBJECT_ID \
-X PUT \
-H 'Content-Type: application/json' \
-H "X-API-Key: $LARK_API_KEY" \
-d '{
"email": "john.doe@example.com",
"metadata": {},
"name": "John Doe"
}'
{
"id": "subj_VyX6Q96h5avMho8O7QWlKeXE",
"created_at": "2025-11-01T00:00:00Z",
"email": "john.doe@example.com",
"external_id": "user_1234567890",
"metadata": {},
"name": "John Doe"
}Returns Examples
{
"id": "subj_VyX6Q96h5avMho8O7QWlKeXE",
"created_at": "2025-11-01T00:00:00Z",
"email": "john.doe@example.com",
"external_id": "user_1234567890",
"metadata": {},
"name": "John Doe"
}