Jeff Program Testing
  1. USER
Jeff Program Testing
  • Overview
  • ACCOUNT
    • Get Account
      GET
  • USER
    • Get Users
      GET
    • Get User
      GET
    • Create User
      POST
    • Update User
      POST
    • Delete User
      DELETE
  1. USER

Update User

开发中
POST
/users/{user_id}
Get user by user_id

请求参数

Path 参数
user_id
string 
必需
Update User by user_id
示例值:
657a0e94e49cfdb21e355c49
Header 参数
x-api-key
string 
必需
API key of your funnel account.
示例值:
DmxPFlWX1H*Ag$IuHOaNKQwHp$JWa^l93oKuOpu4Xg5zYmWPER%#P34&LUwD!B!9
Body 参数application/json
name
string 
可选
email
string 
可选
country_code
string 
可选
mobile
string 
可选
join_medium
string 
可选
add_tags
array[string]
可选
示例
{
    "name": "Peter Chan - edit_v3",
    "country_code": "853",
    "mobile": "98765488",
    "add_tags": [
        {
            "value": "健身"
        }
    ],
    "delete_tags": [
        {
            "value": "跑步"
        }
    ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/users/657a0e94e49cfdb21e355c49' \
--header 'x-api-key: DmxPFlWX1H*Ag$IuHOaNKQwHp$JWa^l93oKuOpu4Xg5zYmWPER%#P34&LUwD!B!9' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Peter Chan - edit_v3",
    "country_code": "853",
    "mobile": "98765488",
    "add_tags": [
        {
            "value": "健身"
        }
    ],
    "delete_tags": [
        {
            "value": "跑步"
        }
    ]
}'

返回响应

🟢200Success
application/json
Body
rc
integer 
可选
100 : User updated
-100 : Not found
rm
string 
可选
Return message in details
示例
{
    "rc": 100,
    "rm": "User updated"
}
上一页
Create User
下一页
Delete User
Built with