DuliDuli Open Platform
EN
简体中文
繁體中文
English
Quick Start APIs DuliDuli Official Website
模板

Update User


Request

POST  http://[SERVER:9022]/v1/user/user_update?access_token={access_token}


Parameters

Parameters

Type

Required

Description

access_token

string

Y

Authentication token

org_id

string

Y

Organization ID

account_id

string

Y

Username (Account, limited to 6-12 English characters or digits)

nick_name

string

Y

Nickname

phone

string

Y

Phone Number

mobile_prefix

string

N

Country Code (e.g., China: 86)

email

string

N

Email

display_in_org

boolean

N

• true: Yes

• false: No

Display in Address Book

main_dept

string

N

Primary Department (one of multiple departments)

dept_ids

string[]

N

Departments (an employee can belong to multiple departments)

post_id

string

N

Position ID

gender

string

N

Gender, "1": Male, "2": Female

first_work_date

date

N

First Work Date yyyy-MM-dd

join_date

date

N

Join Date yyyy-MM-dd

regular_date

date

N

Hire Date yyyy-MM-dd

probation_date

date

N

Period End Date yyyy-MM-dd

Request Example:

json

{
"org_id": "1000000",
"account_id": "200200021",
"nick_name": "xxxxxxx1",
"gender": 1,
"mobile_prefix":"86",
"phone": "",
"email": "1231414324@qq.com",
"display_in_org":true,
"main_dept":"1",
"dept_ids":["1","2"],
"post_id":"1",
"first_work_date":"",
"join_date":"",
"regular_date":"",
"probation_date":""
}


Return:

{
"code": 0,
"msg": "ok",
"data":
{
"org": "companyA",
"org_id":"1000000",
"account_id": "200200021", // 账号ID
"account": "kkk666",
"nick_name": "kingsley",
"status": "1",
"is_online": false,
"mobile_prefix":"86",
"phone": "13610117012",
"email": "13610117012@qq.com",
"gender": 1,
"avatar":"http://...",
"reg_time":"2024-12-12 15:53:07"
}
}

Return Details:

Fields

Type

Desc

data


User List

org

string

Organization Name

org_id

string

Organization ID

account_id

string

User ID

account

string

User Account

nick_name

string

Nickname

status

int

"1": Normal, "2": Disabled, "3": Resign

is_online

boolean

• false: Offline

• true: Online

mobile_prefix

int

Phone Number Prefix

phone

string

Phone Number

email

string

Email

gender

int

Gender, "1": Male, "2": Female

avatar

string

User Avatar URL

reg_time

date

Registration Time yyyy-MM-dd HH:mm:ss


状v

code

message

Desc

100060

Invalid org or account

Invalid org or account

100061

mobile already exist error

mobile already exist error

100062

Invalid mobile number

Invalid mobile number

100063

email already exist error

email already exist error

100064

Invalid email

Invalid email

100065

Invalid params

Invalid params

More Global Codes