# 推送aPaaS对象数据变更

勤策平台对象数据发生变化时向第三方系统推送数据接口

请求方式: POST(HTTPS
请求地址: 第三方服务接口URL
请求参数:

参数名称 参数值
dataId 数据ID
version 接口数据版本,如:v1
dataFormat 数据格式:json
dataSource 数据来源,biz:业务数据,api:API接口
appId 客户应用ID
tenantId 企业ID
dataType 数据类型标识:apaas_data_change_event
data <<请求数据体>> ,说明:格式为JSON格式数据

请求数据体:

{
    "objectKey": "对象key",
    "slaveObjectMap": {
        "objectKey(从对象对象key)": [{
              "fieldKey(字段key)":"fieldValue(数据格式参见附录六)"
        }]
      },
    "fieldKey(字段key)": "fieldValue(数据格式参见附录六)"
    
}

data示例:

  {
    "objectKey":"object_kpviF__c",
    "owner": {"name":"张三","id":"6341023461310389683","status":"1"},
    "field_XZrnP__c":"23.00",
    "lock_status":{"code":"UNLOCK","label":"未锁定"},
    "create_time":{"format":"YYYY-MM-DD HH:mm:ss","value":"2024-11-05 11:02:52"},
    "field_q5mkQ__c":"多行",
    "field_LXrMw__c":"00001",
    "approval_status":{"code":"APPROVED","label":"已通过"},
    "modify_time":{"format":"YYYY-MM-DD HH:mm:ss","value":"2024-11-05 14:34:36"},
    "source_type":{"code":"LROPFXCJ","label":"自建"},
    "field_0Qb8c__c":{"code":"86","phone":"15751822888"},
    "field_iyhxf__c":[{"path":"apaas-signature/202411/202411051102862_0db37303b74e4555bc438f901c2cc3ea.png","name":"202411051102862_0db37303b74e4555bc438f901c2cc3ea.png","url":"http://image-test.waiqin365.com/7707843943387811504/apaas-signature/202411/202411051102862_0db37303b74e4555bc438f901c2cc3ea.png"}],
    "field_cW0ov__c":{"name":"0718","id":"6536658115579241799","status":"1"},
    "field_L1S1g__c":"单行",
    "modifyier_id":{"name":"张三","id":"6341023461310389683","status":"1"},
    "business_type":{"code":"busitype_default__c","id":"5754199023798845422","label":"默认业务类型","status":"1"},
    "name":"文本",
    "creator_id":{"name":"张三","id":"6341023461310389683","status":"1"},
    "id":"5131107907682765898",
    "department":{"name":"7230kh2","id":"10","status":"1"},
    "status":{"code":"NORMAL","label":"正常"},
    "slaveObjectMap":{
      "object_cvlas__c2mmua3":[
        {
          "owner":{"name":"张三","id":"6341023461310389683","status":"1"},
          "lock_status":{"code":"UNLOCK","label":"未锁定"},
          "create_time":{"format":"YYYY-MM-DD HH:mm:ss","value":"2024-11-05 11:02:52"},
          "approval_status":{"code":"APPROVED","label":"已通过"},
          "field_nAerO__c":{"format":"HH:mm","value":"11:02"},
          "modify_time":{"format":"YYYY-MM-DD HH:mm:ss","value":"2024-11-05 14:34:36"},
          "source_type":{"code":"LROPFXCJ","label":"自建"},
          "field_ugNt3__c":{"format":"YYYY-MM-DD HH:mm","value":"2024-11-05 11:02"},
          "field_6Xe6F__c":{"name":"文本","id":"5131107907682765898"},
          "field_OMu9v__c":{"format":"YYYY-MM-DD","value":"2024-11-05"},
          "modifyier_id":{"name":"张三","id":"6341023461310389683","status":"1"},
          "business_type":{"code":"busitype_default__c","id":"9012643482227024954","label":"默认业务类型","status":"1"},
          "name":"文本",
          "creator_id":{"name":"张三","id":"6341023461310389683","status":"1"},
          "id":"6405531712541228745",
          "department":{"name":"7230kh2","id":"10","status":"1"},
          "status":{"code":"NORMAL","label":"正常"}
        },
        {
          "owner":{"name":"张三","id":"6341023461310389683","status":"1"},
          "lock_status":{"code":"UNLOCK","label":"未锁定"},
          "create_time":{"format":"YYYY-MM-DD HH:mm:ss","value":"2024-11-05 11:02:52"},
          "approval_status":{"code":"APPROVED","label":"已通过"},
          "field_nAerO__c":{"format":"HH:mm","value":"11:04"},
          "modify_time":{"format":"YYYY-MM-DD HH:mm:ss","value":"2024-11-05 14:34:36"},
          "source_type":{"code":"LROPFXCJ","label":"自建"},
          "field_ugNt3__c":{"format":"YYYY-MM-DD HH:mm","value":"2024-11-01 11:06"},
          "field_6Xe6F__c":{"name":"文本","id":"5131107907682765898"},
          "field_OMu9v__c":{"format":"YYYY-MM-DD","value":"2024-11-06"},
          "modifyier_id":{"name":"张三","id":"6341023461310389683","status":"1"},
          "business_type":{"code":"busitype_default__c","id":"9012643482227024954","label":"默认业务类型","status":"1"},
          "name":"文本",
          "creator_id":{"name":"张三","id":"6341023461310389683","status":"1"},
          "id":"5060282398325804315",
          "department":{"name":"7230kh2","id":"10","status":"1"},
          "status":{"code":"NORMAL","label":"正常"}
        }
      ]
    }
  }

字段说明: 详细字段说明参见 附录六:aPaaS字段类型样式说明 (opens new window)

响应示例:

{
    "return_code": 0,
    "return_msg": ""
}

参数说明:

参数 类型 说明
return_code int 响应编码。0:成功,1:失败
return_msg String 响应说明