username:passwordAuthorization: Basic *****************{
"user": {
"name": "张三",
"mobile": "13800138000",
"fixnumber": "010-12345678",
"email": "zhangsan@example.com",
"position": "技术经理",
"QQ": "12345678",
"note": "重要客户联系人",
"companyId": 100,
"supportId": 10,
"multiServiceList": "10,11",
"service_groupid": "1,2",
"default": 1,
"source": 9,
"custom_fields": [
{"key": "sex", "value": "男"},
{"key": "authaccount", "value": "erp_zhangsan"}
],
"userGroup": "1,2",
"tableName": "VIP,技术部"
}
}curl --location 'https://www.bangwo8.com/api/v1/users.json' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
"user": {
"name": "张三",
"mobile": "13800138000",
"fixnumber": "010-12345678",
"email": "zhangsan@example.com",
"position": "技术经理",
"QQ": "12345678",
"note": "重要客户联系人",
"companyId": 100,
"supportId": 10,
"multiServiceList": "10,11",
"service_groupid": "1,2",
"default": 1,
"source": 9,
"custom_fields": [
{"key": "sex", "value": "男"},
{"key": "authaccount", "value": "erp_zhangsan"}
],
"userGroup": "1,2",
"tableName": "VIP,技术部"
}
}'{}