Update receptionist website

Turns a website on or off for the receptionist on this number, without losing what Allo crawled. Requires the PARTNER scope.

PATCH/v2/api/partner/accounts/{id}/numbers/{number}/receptionist/knowledge/websites/{website_id}

Turns a website on or off for the receptionist on this number, without losing what Allo crawled. Send status set to ACTIVE or DISABLED. The response returns the website, in the same shape as Add receptionist website.

{
  "status": "DISABLED"
}

{website_id} is the id the website was added with, also listed in the receptionist's configuration.knowledge.

The other errors are those of Enable or disable a website.

Errors

CodeWhat it means
RECEPTIONIST_NOT_ACTIVEThe receptionist is not activated on this number (409). Activate it first.
PARTNER_ACCOUNT_NOT_FOUNDNo account with this id was created by your API key, or the account is deactivated (404).
PHONE_NUMBER_NOT_FOUNDThe number is not on this account (404).

Authorization

Authorizationstring · headerrequired

Api-Key ak_live_…

Path parameters

idstringrequired

The account id returned on create.

numberstringrequired

A number of the account, in E.164 format.

website_idstringrequired

The website id, as returned when it was added.

Body

statusenum<string>required

ACTIVEDISABLED

Responses

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 fields
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
400
401
403The 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 fields
typestring
codestring
messagestring
retryableboolean
request_idstring
retry_after_secondsinteger | null
409The receptionist is not activated on this number (RECEPTIONIST_NOT_ACTIVE).
errorobject
6 fields
typestring
codestring
messagestring
retryableboolean
request_idstring
retry_after_secondsinteger | null
429