Skip to main content

Atualizando

Métodos

/instances/ID

PUT https://api.jlivery.com/api/v1/instances/ID

Esse método é responsavel por atualizar as informações de uma instância.

Veja um exemplo:

{
"webhook_url": "http://localhost:3000/webhooks/jzap"
}

Response

200

{
"status": 200,
"message": "",
"data": {
"id": 3,
"project_id": 11,
"token": "1o7342605e8yx9A",
"name": "My instance master",
"webhook_url": "http://localhost:3000/webhooks/jzap",
"phone_number": "",
"dowload_stories": false,
"reject_call": false,
"enabled": true,
"first_connect_at": "2023-10-19T01:18:56.594213Z",
"last_connect_at": "2023-10-23T13:03:41.120277Z",
"created_at": "2023-10-19T00:39:49.274427Z",
"updated_at": "2023-10-23T14:23:49.452570045Z"
}
}