API开发文档

欢迎浏览我们的API开发文档!

更新联系人

PUT

/api/v2/contact/:id

权限:联系人

Header
字段类型描述
Content-Type字符串应用或JSON
参数
字段类型描述
name字符串
numbers对象数组类似:[{“type”:String,”number”:String},…]
emails对象类似 [{“type”:String,”email”:String},…]
tag_ids字符串数组[tagId,tagId…]




请求样例
/api/v2/contact/d3ccb1b893d0352124555151ddc5a923    
 {
     "name":"Caiwei",
     "numbers":[{"type":"Company","number":"17314141431"}],
     "emails":[{"type":"Home","email":"caiwei@gmai.com"}],
     "tag_ids":["d3ccb1b893d0352124555151ddac05a6"] 
  }

成功 200
字段类型描述
id字符串
成功响应
HTTP/1.1 200 OK
  {
    "_id": "d3ccb1b893d0352124555151ddc5a923",
    "name": "Caiwei",
    "numbers": [
        {
             "type": "Company",
            "number": "17314141431"
          }
    ],
    "emails": [
         {
            "type": "Home", 
             "email": "caiwei@gmai.com"
         }
    ],
    "tag_ids": [
         "d3ccb1b893d0352124555151ddac05a6"
      ],
    "doc_type": "contact",
    "created_date": 1539248841297,
    "modified_date": 1539249790186
 }


标签:
Table of Contents