OverviewProductsPlatformsAPI ReferenceResources
Meta Business Agent

Update a FAQ

PUThttps://zernio.com/api/v1/accounts/{accountId}/business-agent/faqs/{faqId}

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

accountIdstringRequired

WhatsApp social account id (the number must be managed through the Cloud API).

faqIdstringRequired

Body

application/json

What every request needs

questionstring, max 1000Required

Phrase it the way a customer would ask it; one topic per entry.

answerstring, max 8000Required

Self-contained; the agent retrieves entries independently.

Optional parameters1 field
metadataobject

Responses

Success· the request worked

Errors· the request failed

PUT/v1/accounts/{accountId}/business-agent/faqs/{faqId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.businessagent.updateBusinessAgentFaq({  path: {    accountId: 'account_abc123',    faqId: 'faq_abc123',  },  body: {    question: 'string',    answer: 'string',  },});console.log(data);
{  "question": "string",  "answer": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "id": "string",  "created_at": 0}
OpenAPI specification
Was this page helpful?