field key cannot be changed.{ "name": "Lifetime Trading Volume", "type": "numerical", "defaultValue": 0 }userFields. The caller must be an owner or administrator. The path accepts stable key or ObjectId. The body must contain at least one supported change.{ "name": "Lifetime Trading Volume" }{ "defaultValue": null }{ "type": "boolean", "defaultValue": false }field; it is immutable. If a type change would make an existing/default value invalid, choose a compatible value or clear the default deliberately.{
"meta": { "status": "success", "statusCode": 200, "code": "USER_FIELD_UPDATED" },
"message": "Update user field api success.",
"data": {
"_id": "<fieldObjectId>",
"name": "Lifetime Trading Volume",
"field": "trading_volume",
"type": "numerical",
"defaultValue": 0,
"isCustom": true
}
}400 INVALID_FIELD_DEFINITION: body, type, or default is invalid.400 INVALID_FIELD_DEFINITION: also returned when the body attempts to change the immutable field key; remove that property.401 AUTHENTICATION_REQUIRED / 403 API_KEY_PERMISSION_DENIED: fix key or owner/admin access.404 USER_FIELD_NOT_FOUND: PUT does not upsert; create separately if appropriate.409 USER_FIELD_UPDATE_FORBIDDEN: built-in or otherwise protected field.409 USER_FIELD_NAME_CONFLICT: choose a unique display name.500 USER_FIELD_OPERATION_FAILED: state may be unclear; read before retrying.Idempotency-Key. After a timeout or 5xx, GET the definition by stable key and compare every requested property before deciding whether to repeat the update.curl --location --request PUT 'https://api.returning.ai/v1/communities/6502c9e514a3e564c5c09c0a/user-fields/trading_volume' \
--header 'Authorization: Bearer <apiKey>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Lifetime Trading Volume"
}'{
"meta": {
"status": "success",
"statusCode": 200,
"code": "USER_FIELD_UPDATED"
},
"message": "Update user field api success.",
"data": {
"_id": "66f000000000000000000010",
"name": "Lifetime Trading Volume",
"field": "trading_volume",
"type": "numerical",
"defaultValue": 0,
"isCustom": true
}
}