删除特定备注

目的

用来删除备注。

请求URL

https://www.zohoapis.com.cn/crm/v2/{module_api_name}/{record_id}/Notes/{note_id}

module_api_name - 模块的API名称

record_id - 记录的唯一ID

note_id - 备注的唯一ID

获取特定备注中支持的模块在这里也支持。

请求方法

DELETE

范围

scope=ZohoCRM.modules.all
(或)
scope=ZohoCRM.modules.{module_name}.{operation_type}
(和)
scope=ZohoCRM.modules.notes.DELETE

 
可能的模块名称可能的操作类型
线索,客户,联系人,商机,市场活动,任务,服务支持,事件,通话,解决方案,产品,供货商,价格表,报价单,销售订单,采购订单,发货单和自定义模块ALL - 完全访问备注
WRITE - 编辑备注数据
DELETE - 删除备注数据

示例请求


				curl "https://www.zohoapis.com.cn/crm/v2/Leads/2883756000000268053/Notes/2883756000000268003"
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"
-X DELETE			

示例响应


				{
    "data": [
       {
            "code": "SUCCESS",
            "details": {
                "id": "2883756000000268003"
            },
            "message": "record deleted",
            "status": "success"
        }
    ]
}			

示例请求


				def delete_note(self):
    try:
        record=ZCRMRecord.get_instance('Leads',1386586000001856002)
        note_ins=ZCRMNote.get_instance(record, 1386586000001859023)
        resp=record.delete_note(note_ins)
        print resp.status_code
        print resp.code
        print resp.details
        print resp.message
        print resp.status
    except ZCRMException as ex:
        print ex.status_code
        print ex.error_message
        print ex.error_code
        print ex.error_details
        print ex.error_content			

示例响应


				{
    "data": [
       {
            "code": "SUCCESS",
            "details": {
                "id": "2883756000000268003"
            },
            "message": "record deleted",
            "status": "success"
        }
    ]
}			

示例请求


				ZCRMRecord recordIns = ZCRMRecord.GetInstance("Leads", 3372164000000614001); //模块API名称和记录ID
ZCRMNote note = ZCRMNote.GetInstance(recordIns, 3372164000001369220); //带有备注ID的记录实例
APIResponse response = recordIns.DeleteNote(note);
ZCRMNote updatedNote = (ZCRMNote)response.Data;			

示例响应


				{
    "data": [
       {
            "code": "SUCCESS",
            "details": {
                "id": "2883756000000268003"
            },
            "message": "record deleted",
            "status": "success"
        }
    ]
}