Skip to main content
PUT
/
v1
/
contacts
/
{id}
Atualizar contato
curl --request PUT \
  --url https://api.notifique.dev/v1/contacts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "<string>",
  "email": "<string>",
  "name": "<string>",
  "url": "<string>",
  "tagIds": [
    "<string>"
  ]
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "name": "<string>",
    "phone": "<string>",
    "email": "<string>",
    "url": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "tags": [
      {
        "id": "<string>",
        "name": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Authorization: Bearer sk_live_xxxxx

Path Parameters

id
string
required

Body

application/json

Todos os campos opcionais; tagIds substitui a lista de tags.

phone
string | null
email
string | null
name
string | null
url
string | null
tagIds
string[]

Response

Contato atualizado.

success
boolean
Example:

true

data
object

Contato do workspace (phone e/ou email; tags).