Skip to main content
PATCH
Stato del bot su una conversazione

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

If-Match
string

L'ETag ricevuto: la modifica passa solo se nessuno ha cambiato la risorsa (altrimenti 409 conflict, details.reason = version_mismatch).

Path Parameters

id
string<uuid>
required

Identificativo della risorsa.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$

Body

application/json
state
string
required
Allowed value: "attivo"

Response

La conversazione con il bot nel nuovo stato.

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
patientId
string<uuid> | null
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
leadId
string<uuid> | null
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
phone
string
required
botState
enum<string>
required

attivo = risponde; in_pausa = zitto fino a botPausedUntil; allo_studio = spento da una persona.

Available options:
attivo,
in_pausa,
allo_studio
botPausedUntil
string | null
required
optedOut
boolean
required

true = il paziente ha scritto STOP: non gli si mandano messaggi automatici.

lastInboundAt
string | null
required
lastOutboundAt
string | null
required
lastActivityAt
string
required
createdAt
string
required
updatedAt
string
required