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

      • Object Description API

      • Approval Process API

      • Custom Function API

      • Lock Unlock API

      • Related Team API

      • Currency API

      • Business Process API

      • Stage Progression API

      • product Categories API

        • Query product categories
        • Edit product categories
        • Other Common API

      • Address Book API

      • Other API

    • SSO Integration

    • Client Development

    • FAQ

    Table of Contents

    Edit Product Category

    # Description

    Edit product category

    # Request Specification

    Request Method: POST + application/json

    Request Path: https://${cloud domain}/cgi/crm/data/editProductCategory?thirdTraceId=${random string}

    Request Headers: Refer to Common Parameters

    # Request Parameters

    Parameter Type Required Description
    data Map Yes API parameter map
      editFlag int Yes Operation type; 1: create, 2: update, 3: delete
      id String Required for edit and delete Unique ID of the product category
      name String Required for create Single-select label of the product category, corresponding to the single-select label in the CRM description
      pid String No Parent category node ID of the product category
      orderField int Required for create Order number of the product unit at this level
      category_code String Required for create Product category

    # Request Example

    {
      "data": {
        "editFlag": 1.0,
        "id": "123",
        "name": "Vegetable 1",
        "pid": "2c188941cded4c74b348338a4415f265",
        "category_code": "123",
        "orderField": 3.0
      }
    }
    

    # Response Parameters

    Parameter Type Description
    traceId string Unique request ID
    errorDescription string Error description
    errorMessage string Error message
    errorCode Int View error codes

    # Response Example

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

    # Notes

    • Do not use the message field in the response for logical judgment as errorMessage may change;
    Query product categories
    Get Countries

    ← Query product categories Get Countries →

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