Sugarcrm支持 产品指南 糖开发人员 糖开发人员指南10.0 一体化 网页服务 休息API. 终点 /<module> /:记录/链接/:link_name post

/<module> /:记录/链接/:link_name post

概述

创建相关的记录。

请求论据

名称 类型 描述 必需的
<record field> <record field type> 填充字段的名称值列表。 True

要求

{
    "first_name":"Bill",
    "last_name":"Edwards"
}

响应论点

名称 类型 描述
record Array 与新创建的记录相关的记录。
related_record Array 创建和关联的记录。

回复

{
   " 记录 ":{
      "id":"da6a3741-2a81-ba7f-f249-512d0932e94e",
      "name":"Slender Broadband Inc - 1000 units",
      "date_entered":"2013-02-26T19:12:00+00:00",
      "date_modified":"2013-02-26T19:12:00+00:00",
      "modified_user_id":"1",
      "modified_by_name":"Administrator",
      "created_by":"1",
      "created_by_name":"Administrator",
      "description":"",
      "img":"",
      "deleted":false,
      "assigned_user_id":"seed_max_id",
      "assigned_user_name":"Max Jensen",
      "team_name":[
         {
            "id":"East",
            "name":"East",
            "name_2":"",
            "primary":false
         },
         {
            "id":"West",
            "name":"West",
            "name_2":"",
            "primary":true
         }
      ],
      "opportunity_type":"",
      "account_name":"Slender Broadband Inc",
      "account_id":"181461c6-dc81-1115-1fe0-512d092e8f15",
      "campaign_id":"",
      "campaign_name":"",
      "lead_source":"Campaign",
      "amount":"25000",
      "base_rate":"1",
      "amount_usdollar":"25000",
      "currency_id":"-99",
      "currency_name":"",
      "currency_symbol":"",
      "date_closed":"2013-02-27",
      "date_closed_timestamp":"1361992480",
      "next_step":"",
      "sales_stage":"Needs Analysis",
      "sales_status":"New",
      "probability":"90",
      "best_case":"25000",
      "worst_case":"25000",
      "commit_stage":"include",
      "my_favorite":false,
      "_acl":{
         "fields":{

         }
      }
   },
   " 相关_ record. ":{
      "id":"e1c495cb-af17-1b37-dd66-512f934fe155",
      "name":"Bill Edwards",
      "date_entered":"2013-02-28T17:25:00+00:00",
      "date_modified":"2013-02-28T17:25:00+00:00",
      "modified_user_id":"1",
      "modified_by_name":"Administrator",
      "created_by":"1",
      "created_by_name":"Administrator",
      "description":"",
      "img":"",
      "deleted":false,
      "assigned_user_id":"",
      "assigned_user_name":"",
      "team_name":[
         {
            "id":1,
            "name":"Global",
            "name_2":"",
            "primary":true
         }
      ],
      "salutation":"",
      "first_name":"Bill",
      "last_name":"Edwards",
      "full_name":"Bill Edwards",
      "title":"",
      "linkedin":"",
      "facebook":"",
      "twitter":"",
      "googleplus":"",
      "department":"",
      "do_not_call":false,
      "phone_home":"",
      "email":[

      ],
      "phone_mobile":"",
      "phone_work":"",
      "phone_other":"",
      "phone_fax":"",
      "email1":"",
      "email2":"",
      "invalid_email":"",
      "email_opt_out":"",
      "primary_address_street":"",
      "primary_address_street_2":"",
      "primary_address_street_3":"",
      "primary_address_city":"",
      "primary_address_state":"",
      "primary_address_postalcode":"",
      "primary_address_country":"",
      "alt_address_street":"",
      "alt_address_street_2":"",
      "alt_address_street_3":"",
      "alt_address_city":"",
      "alt_address_state":"",
      "alt_address_postalcode":"",
      "alt_address_country":"",
      "assistant":"",
      "assistant_phone":"",
      "picture":"",
      "email_and_name1":"",
      "lead_source":"",
      "account_id":"",
      "opportunity_role_fields":"",
      "opportunity_role_id":"",
      "opportunity_role":"",
      "reports_to_id":"",
      "report_to_name":"",
      "portal_name":"",
      "portal_active":false,
      "portal_password":"",
      "portal_password1":"",
      "portal_app":"",
      "preferred_language":"en_us",
      "campaign_id":"",
      "campaign_name":"",
      "c_accept_status_fields":"",
      "m_accept_status_fields":"",
      "accept_status_id":"",
      "accept_status_name":"",
      "sync_contact":"",
      "my_favorite":false,
      "_acl":{
         "fields":{

         }
      }
   }
}

更改日志

版本 改变
v10 Added /<module>/:record/link/:link_name POST endpoint.

最后修改:2020-03-16 17:04:48