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":"[email protected]"}],
"tag_ids":["d3ccb1b893d0352124555151ddac05a6"]
}
成功 200 | ||
字段 | 類型 | 描述 |
id | 字符串 |
成功響應
HTTP/1.1 200 OK
{
"_id": "d3ccb1b893d0352124555151ddc5a923",
"name": "Caiwei",
"numbers": [
{
"type": "Company",
"number": "17314141431"
}
],
"emails": [
{
"type": "Home",
"email": "[email protected]"
}
],
"tag_ids": [
"d3ccb1b893d0352124555151ddac05a6"
],
"doc_type": "contact",
"created_date": 1539248841297,
"modified_date": 1539249790186
}