Fxiaoke Developer Manual Fxiaoke Developer Manual
  • APL Development Manual
  • PWC Development Manual
  • OpenAPI Documentation
  • Quick Start
  • API Authorization
  • API Basics
  • OpenAPI
  • SSO Integration
  • Client Development
  • FAQ
  • OpenApi Version V1 (opens new window)
  • 简体中文
  • English
  • Quick Start
  • API Authorization
  • API Basics
  • OpenAPI
  • SSO Integration
  • Client Development
  • FAQ
  • OpenApi Version V1 (opens new window)
  • 简体中文
  • English
  • Quick Start

  • API Authorization

  • API Basics

  • OpenAPI

    • CRM Object API

    • CRM Common API

    • Address Book API

    • Other API

      • Task Todo API

      • Attendance Field Work API

      • Collaborative Approval API

      • Enterprise Connect API

      • Message API

      • Material Management API

      • Network Disk API

      • Marketing API

      • File Service

      • ERP API

      • BI API

      • Offline API

        • Set Member Status Batch
        • Update Department
        • Query Updated Employee List By Time Range
        • Set Member Status
        • Get Department Details
        • Query Employee Info By OpenUserId
        • Set Department Status
        • Update Member
          • Get Department List
          • Query Employee By Mobile
          • Create Preset Object
          • Delete Preset Object
          • Query Preset Object Details
          • Invalidate Preset Object
          • Query Preset Object List
          • Update Preset Object
          • Recover Preset Object
          • Change Preset Object Owner
          • Create Erp Object
          • Query Erp Object List
          • Query Erp Object Details
          • Update Erp Object
          • Recover Erp Object
          • Invalidate Erp Object
          • Change Erp Object Owner
          • Delete Erp Object
    • SSO Integration

    • Client Development

    • FAQ

    Table of Contents

    Modify Member

    # Not recommended to continue using this offline interface!!!

    # Description

    Modify member information.

    # Request Specification

    Request Method: POST + application/json

    Request Path: https://${Enter cloud domain}/cgi/crm/v2/data/update?thirdTraceId=${Random String}

    # Request Parameters

    Parameter Type Required Description
    corpAccessToken String Yes Corporate application access company legitimacy token
    corpId String Yes Open platform company account
    user Map Yes Department ID
      openUserId String Yes Employee ID
      account String No Employee account (cannot be duplicated), not provided means no modification
      name String No Employee nickname (cannot be duplicated), not provided means no modification
      fullName String No Employee full name, not provided means no modification
      position String No Position, not provided means no modification
      gender String No Gender, valid values: {M,F}, not provided means no modification
      mobile String No Mobile phone number (cannot be duplicated), not provided means no modification
      email String No Email address, not provided means no modification
      qq String No QQ number, not provided means no modification
      weixin String No WeChat ID, not provided means no modification
      mainDepartmentId Int No Main department ID
      attachingDepartmentIds List No Attached department list (int collection must be non-negative integers, max value: 500, not provided means no modification)
      employeeNumber String No Employee number, required if company system name allows duplicates
      hireDate String No Hire date
      birthDate String No Employee birthday
      startWorkDate String No Start work date
      leaderId String No Reporting manager

    # Request Example

    {
      "corpAccessToken": "{corpAccessToken}",
      "corpId": "{corpId}",
      "user": {
        "qq": "45682156",
        "hireDate": "1504173600000",
        "gender": "M",
        "attachingDepartmentIds": [
          1,
          2,
          3
        ],
        "mobile": "15845698456",
        "fullName": "xxx-fullName",
        "openUserId": "fsuid_openId2",
        "birthDate": "1504627199000",
        "employeeNumber": "168XXXX123",
        "leaderId": "FSUID_XXXXXXXXXXXXXXXXXXX",
        "weixin": "15010478956",
        "name": "xx-name",
        "position": "经理",
        "account": "",
        "email": "xxx@fxiaoke.com",
        "startWorkDate": "1504173600000",
        "mainDepartmentId": ""
      }
    }
    

    # Response Parameters

    Parameter Type Description
    traceId string Unique request ID
    errorDescription string Error description
    errorMessage string Error message
    errorCode Int Error Codes Reference

    # Response Example

    {
      "traceId": "E-O.827xxxxxx",
      "errorDescription": "success",
      "errorMessage": "OK",
      "errorCode": 0
    }
    

    # Notes

    • Do not use the message field in the response for logical judgments, as errorMessage may change;
    Set Department Status
    Get Department List

    ← Set Department Status Get Department List →

    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式