Active ou désactive un site web pour la réceptionniste de ce numéro, sans perdre ce qu'Allo a exploré. Envoyez status avec ACTIVE ou DISABLED . La réponse…
Active ou désactive un site web pour la réceptionniste de ce numéro, sans perdre ce qu'Allo a exploré. Envoyez status avec ACTIVE ou DISABLED. La réponse renvoie le site, dans la même forme que Ajouter un site web à la réceptionniste.
{"status":"DISABLED"}
{website_id} est l'id avec lequel le site a été ajouté, aussi listé dans configuration.knowledge de la réceptionniste.
La réceptionniste n'est pas activée sur ce numéro (409). Activez-la d'abord.
PARTNER_ACCOUNT_NOT_FOUND
Aucun compte avec cet identifiant n'a été créé par votre clé API, ou le compte est désactivé (404).
PHONE_NUMBER_NOT_FOUND
Le numéro n'est pas sur ce compte (404).
Autorisation
Authorizationstring · headerrequis
Api-Key ak_live_…
Paramètres de chemin
idstringrequis
The account id returned on create.
numberstringrequis
A number of the account, in E.164 format.
website_idstringrequis
The website id, as returned when it was added.
Corps
statusenum<string>requis
ACTIVEDISABLED
Réponses
200The website after the update
dataobject
A website of the team's knowledge library, crawled for the receptionist to answer from. The crawled text itself is not reported: it is what the receptionist reads, not something you configure.
5 champs
idstring
urlstring
statusenum<string>
ACTIVE when this line's receptionist answers from the website, DISABLED when this line does not use it.
ACTIVEDISABLED
created_atstring<date-time> | null
updated_atstring<date-time> | null
400401403The API key lacks the PARTNER scope.
errorobject
404No account with this id was created by your API key, or it is deactivated (PARTNER_ACCOUNT_NOT_FOUND), or the number is not on the account (PHONE_NUMBER_NOT_FOUND). Or no website with this id.
errorobject
6 champs
typestring
codestring
messagestring
retryableboolean
request_idstring
retry_after_secondsinteger | null
409The receptionist is not activated on this number (RECEPTIONIST_NOT_ACTIVE).