- Returning.AI
- Auth
- Server
- Role
- Channel
- Badge
- Integration
- users
- Messages
- Channels
- User Field Histories
- User Fields
- Users
- Application
Create user field history
POST
/apis/v1/communities/{communityId}/user-fields/{fieldId}/users/{userId}/histories
User Field Histories
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
communityId
string
required
fieldId
string
required
userId
string
required
Body Params application/json
value
number
required
Example:
10
action
enum<string>
optional
Allowed values:
increasedecreaseoverwrite
Default:
increase
Example:
increase
Example
{
"value": 10,
"action": "increase"
}
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 --location --request POST 'https://integration.returning.ai/apis/v1/communities//user-fields//users//histories' \
--header 'Content-Type: application/json' \
--data-raw '{
"value": 10,
"action": "increase"
}'
Responses
🟢201Created
application/json
Body
meta
object
optional
status
string
optional
statusCode
number
optional
sum
number
optional
message
string
optional
data
object
optional
_id
string
optional
fieldId
string
optional
value
number
optional
action
enum<string>
optional
Allowed values:
increasedecreaseoverwrite
createdAt
string <date-time>
optional
Example
{
"meta": {
"status": "success",
"statusCode": 201,
"sum": 500
},
"message": "User field history created successfully",
"data": {
"_id": "685957701ff244c62bd2e5b4",
"fieldId": "6857de260f3c24d98fd7ca89",
"value": 500,
"action": "overwrite",
"createdAt": "2025-06-23T13:32:32.950Z"
}
}
🟠400Bad Request
🟠404Record Not Found
🔴500Server Error
Modified at 2025-06-23 14:46:45