English
English
简体中文
Contact Us
Register
Log In

Modify Member

Last Updated on : 2022-09-22 09:34:55download

According to the member ID, update the basic information, permission, and role of a specified member.

API address

PUT: /v1.0/iot-02/community/member/{block_id}/{member_id}

Request parameter

Parameter nameTypeINRequiredDescription
block_idStringuritrueThe ID of the community.
member_idStringuritrueThe ID of a specified member.

Description of body

Parameter nameTypeINRequiredDescription
member_idString trueThe list of member IDs, separated with commas (,).
block_idsString trueThe community IDs, separated with commas (,).
structure_idString trueThe ID of a specified organization.
educationString trueThe education background.
role_idsString trueThe list of role IDs, separated with commas (,).
adminInteger falseIndicates whether it is an administrator. Valid values:
  • 1: yes.
  • 2: no.
data_permissionInteger falseThe permission to view data privacy. Valid values:
  • 1: open.
  • 2: confidential.
country_codeString falseThe country/region code.
  • 86: China.
admin_nameString trueThe name.
sexInteger trueGender. Valid values:
  • 1: male.
  • 2: female.
mobileString trueThe mobile phone number.
card_typeInteger falseThe type of certificate.
  • 1: identity card.
card_noString falseThe certificate number.
birthdayLong falseThe birthday.
positionString falseThe job position.

Return parameter

Parameter nameTypeDescription
resultBooleanIndicates whether the operation is successful.

Request example

PUT: /v1.0/iot-02/community/member/136767399153950xxxx/139215249742181xxxx
{
  "member_id": "136767399153950xxxx",
  "admin_name": "Utilities Operation and Maintenance",
  "role_ids": "136767399153950xxxx,136767399153950xxxx",
  "mobile": "1300000****",
  "blocks": "136767399153950xxxx",
  "account_status": 1,
  "structure_id": "136767399153950xxxx",
  "structure_name": "test",
  "sex": 1,
  "myself": 2,
  "admin": 0,
  "country_code": "86",
  "structure_path_name": "test",
  "structure_infos": [],
  "card_type": 1,
  "card_no": "31162119920918xxxx",
  "birthday": 0,
  "position": "Plumber",
  "education": "Primary School"
}

Return example

true

Error code

For more information, see error code.