- Returning.AI
- Auth
- Server
- Role
- Channel
- Badge
- Integration
- users
- Messages
- Channels
- User Field Histories
- User Fields
- Users
- Application
Update user field
PUT
/apis/v1/communities/{communityId}/user-fields/{fieldId}
User Fields
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
communityId
string
required
Example:
6167dba9c548eb5c7ec28057
Match pattern:
^[0-9a-fA-F]{24}$
fieldId
string
required
Example:
6857de260f3c24d98fd7ca85
Match pattern:
^[0-9a-fA-F]{24}$
Body Params application/json
name
string
required
type
enum<string>
required
Allowed values:
datesingle-line-textnumericalmulti-line-textnumbertext
Examples
{
"name": "Department",
"type": "text"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request PUT 'https://integration.returning.ai/apis/v1/communities/6167dba9c548eb5c7ec28057/user-fields/6857de260f3c24d98fd7ca85' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Department",
"type": "text"
}'
Responses
🟢200OK
application/json
Body
meta
object
optional
status
string
optional
statusCode
number
optional
message
string
optional
data
object
optional
_id
string
optional
field
string
optional
name
string
optional
type
enum<string>
optional
Allowed values:
datesingle-line-textnumericalmulti-line-textnumbertext
creator
object | null
optional
createdAt
string <date-time>
optional
updatedAt
string <date-time>
optional
Example
{
"meta": {
"status": "success",
"statusCode": 200
},
"message": "Updated user field",
"data": {
"_id": "6857de260f3c24d98fd7ca85",
"field": "department",
"name": "Department",
"type": "text",
"creator": {
"_id": "61100af5c548eb5c7ebc7819",
"avatar": "https://returning-ai.com/avatar.png",
"displayName": "Admin",
"username": "admin"
},
"createdAt": "2025-06-22T11:28:50.301Z",
"updatedAt": "2025-06-22T11:30:15.456Z"
}
}
🟠400Bad Request
🟠404Record Not Found
🔴500Server Error
Modified at 2025-06-23 14:46:45