v1

latestOpenAPI 3.0.32026-07-2431396640.5 KB
crm-v1-contacts

Atualizar contato

Atualizar contato

put/contacts/{contact_id}

Path parameters

contact_idstring required

ID do contato.

Request body

Example request

{
  "contact": {
    "birthday": {
      "day": 11,
      "month": 9,
      "year": 1979
    },
    "contact_custom_fields": [
      {
        "custom_field_id": "646e73a3651e44000f352486",
        "value": "Valor X"
      }
    ],
    "deal_ids": [
      "64dccdc7902ce80001d9fa9f"
    ],
    "emails": [
      {
        "email": "fulano@email.com.br"
      }
    ],
    "facebook": "facebook do contato",
    "legal_bases": [
      {
        "category": "data_processing",
        "status": "granted",
        "type": "consent"
      }
    ],
    "linkedin": "linkedin do contato",
    "name": "Renan Porto ATUALIZADO",
    "organization_id": "64ca5196268ec600013bac1b",
    "phones": [
      {
        "phone": "1111111111",
        "type": "home"
      }
    ],
    "skype": "skype do contato",
    "title": "Diretor"
  }
}

Response

Success

_idstring
contact_c_fobject
created_atstring
deal_idsstring[]
facebookstring
idstring
linkedinstring
namestring
{"stackTrail":"paths:/contacts/{contact_id}:put:responses:200:content:application/json:schema:properties:notes","oasType":"schema","type":"unknown"}
organization_idstring
skypestring
titlestring
updated_atstring

Example response

{
  "_id": "ID",
  "birthday": {
    "_id": "64ed320a4f5846000d6c2eaa",
    "day": 11,
    "month": 9,
    "year": 1979
  },
  "contact_custom_fields": [
    {
      "_id": "64ed326dbe76ee0018b69075",
      "custom_field_id": "646e73a3651e44000f352486",
      "value": "Valor X"
    }
  ],
  "created_at": "2023-08-28T20:47:22.516-03:00",
  "deal_ids": [
    "64dccdc7902ce80001d9fa9f"
  ],
  "emails": [
    {
      "_id": "64ed326dbe76ee0018b69074",
      "email": "fulano@email.com.br"
    }
  ],
  "facebook": "facebook do contato",
  "id": "ID",
  "legal_bases": [
    {
      "category": "communications",
      "status": "granted",
      "type": "vital_interest"
    }
  ],
  "linkedin": "linkedin do contato",
  "name": "NAME",
  "organization": {
    "_id": "64ca5196268ec600013bac1b",
    "name": "4 Dimensão Logística"
  },
  "organization_id": "64ca5196268ec600013bac1b",
  "phones": [
    {
      "_id": "64ed326dbe76ee0018b69071",
      "phone": "1111111111",
      "type": "home"
    }
  ],
  "skype": "skype do contato",
  "title": "Diretor",
  "updated_at": "2023-08-28T20:49:01.500-03:00"
}