curl -X PATCH 'https://api.example.com/users/user_jane' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"displayName": "Jane D.",
"defaultTenantId": "tenant_globex"
}'
{
"id": "user_jane",
"subjectId": "subject_jane",
"kindeId": "kp_abc123",
"email": "jane@acme.com",
"displayName": "Jane D.",
"defaultTenantId": "tenant_globex",
"status": "active",
"updatedAt": "2024-01-16T10:30:00Z"
}
Update a user
curl -X PATCH 'https://api.example.com/users/user_jane' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"displayName": "Jane D.",
"defaultTenantId": "tenant_globex"
}'
{
"id": "user_jane",
"subjectId": "subject_jane",
"kindeId": "kp_abc123",
"email": "jane@acme.com",
"displayName": "Jane D.",
"defaultTenantId": "tenant_globex",
"status": "active",
"updatedAt": "2024-01-16T10:30:00Z"
}
active, inactive, suspendedcurl -X PATCH 'https://api.example.com/users/user_jane' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"displayName": "Jane D.",
"defaultTenantId": "tenant_globex"
}'
{
"id": "user_jane",
"subjectId": "subject_jane",
"kindeId": "kp_abc123",
"email": "jane@acme.com",
"displayName": "Jane D.",
"defaultTenantId": "tenant_globex",
"status": "active",
"updatedAt": "2024-01-16T10:30:00Z"
}
Was this page helpful?